UISwitch
来源:互联网 发布:c语言冒泡排序简单代码 编辑:程序博客网 时间:2024/06/04 19:11
UISwitch开关按钮
UISwitch *swich =[[UISwitch alloc]initWithFrame:CGRectMake(20, 300, 40, 40)];//frame是没有意义的,系统的开关控件大小是确定的。
swich.onImage= [UIImage imageNamed:@”switchTwo_on.png”];//不能使用,无效
swich.onTintColor=[UIColor clearColor];//开关打开时的颜色
swich.tintColor=[UIColor blackColor];//开关的边框颜色
swich.thumbTintColor=[UIColor redColor];//开关的颜色
switch.on=yes;//设置开关的状态
手动设置开关状态
- (void)setOn:(BOOL)on animated:(BOOL)animated;
0 0
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- 线程简单地存钱--取钱操作
- Android程序开发——5.0新特性 RecycleView替换ListView
- python scrapy 爬博客信息
- hdu 5898 odd-even number (数位dp)
- Swift 学习笔记---Methods
- UISwitch
- Android M 启动源码分析笔记之 - Init 进程
- 2016CCPC东北地区大学生程序设计竞赛-Mr. Frog’s Game
- Burp 1.6 无法抓取HTTPS解决办法
- 1003-Max Sum
- MD5 工具类
- 【codevs 3012】线段覆盖 4
- android studio 获取 SHA1与MD5
- 自定义edittext,酷炫效果