lilei644 / Llswitch
Licence: mit
This is a funny switch for iOS - 一个有趣的switch
Stars: ✭ 584
Labels
Projects that are alternatives of or similar to Llswitch
Deepsea
The new All-in-One CFW package for the Nintendo Switch.
Stars: ✭ 488 (-16.44%)
Mutual labels: switch
Road To Yuzu Without Switch
This Repo explains how to install the Yuzu Switch Emulator without a Switch
Stars: ✭ 267 (-54.28%)
Mutual labels: switch
Ciscoconfparse
Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations. Python Infrastructure as Code (IaC) for Cisco IOS (and other vendors).
Stars: ✭ 562 (-3.77%)
Mutual labels: switch
Switch Desktop
⚡️ Keyboard-driven commands to navigate your apps faster
Stars: ✭ 320 (-45.21%)
Mutual labels: switch
Switchthemeinjector
Create custom themes for the nintendo switch !
Stars: ✭ 436 (-25.34%)
Mutual labels: switch
Kmansonoff
Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant / mqtt
Stars: ✭ 282 (-51.71%)
Mutual labels: switch
Edizon cheatsconfigsandscripts
The official EdiZon Editor Config and Editor Script repository.
Stars: ✭ 271 (-53.6%)
Mutual labels: switch
Reactnative Animation Challenges
A series of animation challenges in React Native.
Stars: ✭ 352 (-39.73%)
Mutual labels: switch
Rekado
Payload launcher and serial number checker for Nintendo Switch
Stars: ✭ 455 (-22.09%)
Mutual labels: switch
LLSwitch
This is a funny switch for iOS
一个有趣的switch
Thank Dribbble for providing inspiration
Preview 预览
Installation 安装
- pod
1.pod "LLSwitch"
2.pod install // 若获取失败请重新 pod setup
3.#import "LLSwitch.h"
- Common
1.Add "LLSwitch" files to your Project // 直接导入“LLSwitch”文件夹到项目中
2.#import "LLSwitch.h"
Usage 用法
- Init 初始化
LLSwitch *llSwitch = [[LLSwitch alloc] initWithFrame:CGRectMake(100, 100, 120, 60)];
[self.view addSubview:llSwitch];
- Reset Base Property 重设基本属性
llSwitch.onColor = [UIColor blueColor]; // switch is open color 开关打开的颜色
llSwitch.offColor = [UIColor grayColor]; // switch is close color 开关关闭的颜色
llSwitch.faceColor = [UIColor whiteColor]; // switch face color 圆脸的颜色
llSwitch.animationDuration = 1.2f; // switch open or close animation time 开关的动画时间
[llSwitch setOn:YES]; // set on and off 设置开关
[llSwitch setOn:YES animated:YES];
- delegate 代理监听
<LLSwitchDelegate>
llSwitch.delegate = self;
-(void)didTapLLSwitch:(LLSwitch *)llSwitch {
NSLog(@"start");
}
- (void)animationDidStopForLLSwitch:(LLSwitch *)llSwitch {
NSLog(@"stop");
}
- (void)valueDidChanged:(LLSwitch *)llSwitch on:(BOOL)on {
NSLog(@"stop --- on:%hhd", on);
}
Requirements 版本要求
IOS 6.0 Above
License
LLSwitch is provided under the MIT license. See LICENSE file for details.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].