摘要: 自定义如图工具栏 1 //创建工具栏 2 NSMutableArray *items = [[NSMutableArray alloc] initWithCapacity:3]; 3 UIBarButtonItem *confirmBtn = [[UIBarButtonIte... 阅读全文
posted @ 2015-12-07 17:55 dingjianjaja 阅读(976) 评论(0) 推荐(0) 编辑
摘要: iOS开发UI篇—使用picker View控件完成一个简单的选餐应用一、实现效果 说明:点击随机按钮,能够自动选取,下方数据自动刷新。 二、实现思路1.picker view的有默认高度为162,不可修改。2.显示数据,需要设置数据源,也有两种方式(成为数据源,遵守协议)3.实现数据源里面的两... 阅读全文
posted @ 2015-12-07 12:27 dingjianjaja 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 在ios第一版中,我们为输出口同时声明了属性和底层实例变量,那时,属性是oc语言的一个新的机制,并且要求你必须声明与之对应的实例变量,例如:@interface MyViewController :UIViewController{UIButton *myButton;}@property (non... 阅读全文
posted @ 2015-12-07 11:24 dingjianjaja 阅读(249) 评论(0) 推荐(0) 编辑