选择器控件UIPickerView:功能:它能够创建一个类似于密码锁式的单列或多列的选择菜单,用户可以通过它设置的代理来选择需要菜单中的任意的数据。例如创建日历、字体表(类型、大小、颜色)、图库等.它是UIView视图的子类,而且遵从UIPickerViewDelegate协议和UIPickerVi...
分类:
其他好文 时间:
2015-08-28 21:06:16
阅读次数:
264
UIPikerView的属性1.numberOfComponents:返回UIPickerView当前的列数NSIntegernum =_pickerView.numberOfComponents;NSLog(@"%d", num);2. - (NSInteger)numberOfRowsInCom...
分类:
其他好文 时间:
2015-08-28 19:22:39
阅读次数:
135
一个简单的plist 解析过程,借助UIPickerView 实现了手选全国的 省市区 方法,源码中有详细注释;长句自己可以拆开看,最好的方法是,拆开,并打印,查看每一步打印的结果,结合Plist文件,解读文件读取过程基本原理是通过字典 、数组、逐层剥壳源码:.h 1 // 2 // ViewCo....
分类:
其他好文 时间:
2015-08-28 10:51:47
阅读次数:
281
1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @property(strong, nonatomic) UIPickerView * pickerView; 6 @property(strong,...
分类:
其他好文 时间:
2015-08-27 22:40:17
阅读次数:
151
通过UIPickerView选择器做的一个类似于密码锁的日期时间表 源码如下: 1 #import 2 3 @interface ViewController : UIViewController 4 @property (strong,nonatomic) NSArray *weeks;//显.....
分类:
其他好文 时间:
2015-08-27 21:10:32
阅读次数:
220
原文地址:http://blog.csdn.net/duxinfeng2010/article/details/7716123先说一下当个组件选取器,我们创建一个数组NSAray来保存选取器中的内容;选取器本身不会储存任何数据,,它通过调用数据源和委托方法来显示数据;但是对于大量数据的数据源,数组并...
分类:
其他好文 时间:
2015-08-21 12:58:46
阅读次数:
121
*********#import "ViewController.h"#import "Province.h"@interface ViewController ()@property (nonatomic,strong)NSArray *provinces;@property (nonatomic...
分类:
移动开发 时间:
2015-08-19 19:46:19
阅读次数:
152
国旗选择#import "HMViewController.h"#import "HMFlag.h"#import "HMFlagView.h"@interface HMViewController ()@property(nonatomic,strong)NSArray *flags;@end@i...
分类:
移动开发 时间:
2015-08-19 16:29:59
阅读次数:
119
UIPickerView#import "ViewController.h"@interface ViewController ()@property (nonatomic,strong)NSArray *foods;@property (weak, nonatomic) IBOutlet UILa...
分类:
移动开发 时间:
2015-08-19 16:09:24
阅读次数:
121
01-pickerView简单使用一.UIPickerViewDataSource// 返回有多少列- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;// 返回第component有多少行- (NSInteg...
分类:
移动开发 时间:
2015-08-15 00:12:08
阅读次数:
132