All Projects → lilei644 → Llswitch

lilei644 / Llswitch

Licence: mit
This is a funny switch for iOS - 一个有趣的switch

Labels

Projects that are alternatives of or similar to Llswitch

Aio Switch Updater
All-in-One Nintendo Switch Updater
Stars: ✭ 272 (-53.42%)
Mutual labels:  switch
Androlua pro
Lua5.3.3 for android pro
Stars: ✭ 350 (-40.07%)
Mutual labels:  switch
Deepsea
The new All-in-One CFW package for the Nintendo Switch.
Stars: ✭ 488 (-16.44%)
Mutual labels:  switch
Lagopus
Yet another SDN / OpenFlow software switch
Stars: ✭ 281 (-51.88%)
Mutual labels:  switch
Vxe Table
🐬 vxe-table vue 表格解决方案
Stars: ✭ 4,242 (+626.37%)
Mutual labels:  switch
Xlcardswitch
iOS 利用余弦函数特性实现可以居中放大的图片浏览工具
Stars: ✭ 361 (-38.18%)
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
Nintendo Switch Eshop
Crawler for Nintendo Switch eShop
Stars: ✭ 463 (-20.72%)
Mutual labels:  switch
Nbaseuikit
个人平时使用的一些Qt编写的组件(有部分是整合的开源作品,部分是自己原创);
Stars: ✭ 286 (-51.03%)
Mutual labels:  switch
Affinity
Free 2D symbols for computer network diagrams
Stars: ✭ 294 (-49.66%)
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
Switch
🐰 A simple and powerful switch for checkbox.
Stars: ✭ 492 (-15.75%)
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
Unswitch
🕹 A tiny event handler for Switch controllers!
Stars: ✭ 574 (-1.71%)
Mutual labels:  switch
Sysdvr
Stream switch games to your PC via USB or network
Stars: ✭ 523 (-10.45%)
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 预览

LLSwitchDemo

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);
}
  • support xib and storyboard 支持xib和storyboard LLSwitchForXib

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].