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://www.codercto.com/soft/d/8006.html

Web Data Mining

Web Data Mining

Bing Liu / Springer / 2011-6-26 / CAD 61.50

Web mining aims to discover useful information and knowledge from Web hyperlinks, page contents, and usage data. Although Web mining uses many conventional data mining techniques, it is not purely an ......一起来看看 《Web Data Mining》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具