摘要: SegmentedControl又被称作分段控制器,是IOS开发中经常用到的一个UI控件。初始化方法:传入的数组可以是字符串也可以是UIImage对象的图片数组- (instancetype)initWithItems:(NSArray *)items;设置控件风格:@property(nonato... 阅读全文
posted @ 2015-06-10 16:54 中华小当家 阅读(605) 评论(0) 推荐(0) 编辑
摘要: @property(nonatomic) NSInteger numberOfPages; 设置控制器页数(默认为0)@property(nonatomic) NSInteger currentPage; 设置当前所在页码@property(nonatomic)BOOLhidesForSingl... 阅读全文
posted @ 2015-06-10 15:49 中华小当家 阅读(149) 评论(0) 推荐(0) 编辑
摘要: UIButton是一个标准的UIControl控件一、创建两种方法:1. 常规的 initWithFrame(基本不用)UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 80, 44)];对代码创建View(UICo... 阅读全文
posted @ 2015-06-10 15:07 中华小当家 阅读(239) 评论(0) 推荐(0) 编辑