UISwitch 控件 ZJSwitch

码农软件 · 软件分类 · 开关(Switch) · 2019-06-15 08:29:29

软件介绍

ZJSwitch 实现具有 iOS7 风格 UISwitch 控件,可在Switch上显示定制文字。

使用方法:

ZJSwitch *switch0 = [[ZJSwitch alloc] initWithFrame:CGRectMake(100, 100, 60, 31)];
switch0.backgroundColor = [UIColor clearColor];
[switch0 addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:switch0];

ZJSwitch *switch1 = [[ZJSwitch alloc] initWithFrame:CGRectMake(100, 140, 60, 31)];
switch1.backgroundColor = [UIColor clearColor];
switch1.tintColor = [UIColor orangeColor];
[switch1 addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:switch1];

ZJSwitch *switch2 = [[ZJSwitch alloc] initWithFrame:CGRectMake(100, 180, 80, 31)];
switch2.backgroundColor = [UIColor clearColor];
switch2.tintColor = [UIColor orangeColor];
switch2.onText = @"ON";
switch2.offText = @"OFF";
[switch2 addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:switch2];

本文地址:https://codercto.com/soft/d/8006.html

人人都是产品经理——写给产品新人

人人都是产品经理——写给产品新人

苏杰 / 电子工业出版社 / 2017-6 / 66.60

《人人都是产品经理——写给产品新人》为经典畅销书《人人都是产品经理》的内容升级版本,和《人人都是产品经理2.0——写给泛产品经理》相当于上下册的关系。对于大量成长起来的优秀互联网产品经理、众多想投身产品工作的其他岗位从业者,以及更多有志从事这一职业的学生而言,这《人人都是产品经理——写给产品新人》曾是他们记忆深刻的启蒙读物、思想基石和行动手册。作者以分享经历与体会为出发点,以“朋友间聊聊如何做产品......一起来看看 《人人都是产品经理——写给产品新人》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具