说明:事先已经准备好了一个NJCountry类,里面声明了2个属性name和icon,并 创建和实现了快速创建类的动态方法和静态方法。直接导入即可。0.创建一个plist文件,Root为Array,里面为字典(字典里为国家和国旗)1.加载这个plist文件1>声明数组属性 @property(non...
分类:
移动开发 时间:
2015-08-11 22:46:12
阅读次数:
243
说明:事先已经准备好了一个NJProvince类,里面声明了2个属性name和cities,并创建和实现了快速创建类的动态方法和静态方法。直接导入即可。0.创建一个plist文件,Root为Array,里面为字典(字典里为省份和城市)1.加载这个plist文件1>声明数组属性 @property(n...
分类:
移动开发 时间:
2015-08-11 17:57:58
阅读次数:
118
一、点菜0.创建一个plist文件,Root为Array,里面包含3个数组,每个数组有一堆食物名称加载这个plist文件1>声明数组属性 @property(nonatomic,strong)NSArray *foods;2>懒加载(在实现文件最后面)#pragma mark - 懒加载-(NSAr...
分类:
移动开发 时间:
2015-08-11 15:39:58
阅读次数:
164
UIPickerView是iOS中的原生选择器控件,使用方便,用法简单,效果漂亮。@property(nonatomic,assign)id dataSource; @property(nonatomic,assign)id delegate;设置数据源和代理@property(no...
分类:
移动开发 时间:
2015-08-08 14:51:20
阅读次数:
145
UIPickerView的简单应用——省份/城市选择的实现...
分类:
其他好文 时间:
2015-08-05 22:20:59
阅读次数:
139
UIPickerView的简单应用——省份/城市选择的实现...
分类:
其他好文 时间:
2015-08-04 23:00:07
阅读次数:
203
UIDatePicker属性:Mode:Date and TimeLocale:Interval:最大值,最小值 NSDate *date=[self.dataPicker date]; NSDateFormatter *formatter=[[NSDateFormatter alloc...
分类:
其他好文 时间:
2015-08-04 00:28:12
阅读次数:
249
#import "ViewController.h"#import @interface ViewController : UIViewController{ UILabel *lable; NSArray *array;}@end@interface ViewController ()@end.....
分类:
其他好文 时间:
2015-08-03 14:17:39
阅读次数:
85
UIPikerView的属性1. numberOfComponents:返回UIPickerView当前的列数NSInteger num = _pickerView.numberOfComponents;NSLog( @"%d", num);2. - (NSInteger)numberOfRowsI...
分类:
移动开发 时间:
2015-08-01 18:40:45
阅读次数:
187
一、pickerView简单使用1.UIPickerViewDataSource这两个方法必须实现// 返回有多少列- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;// 返回第component有多少行- ...
分类:
移动开发 时间:
2015-07-29 00:45:57
阅读次数:
190