封装的UIPickerView选择填写个人资料
//数据类型枚举 typedef NS_ENUM(NSInteger, DATATYPE) { LYPickerDataCustom,//自定义 LYPickerDataGender,//性别 LYPickerDataHeight,//身高 LYPickerDataWeight,//体重 LYPickerDataSalary,//工资 LYPickerDataDete,//时间 LYPickerDataArea//地点 };
下载后拖入工程,或者用pod安装 pod 'LYPickerChiceView', '~> 0.0.5' 下载地址:https://github.com/liuyik/LYPickerChiceView.git
//创建
_picker = [[LYPickerChiceView alloc] initWithFrame:self.view.bounds];
_picker.dataType = LYPickerDataArea;
_picker.delegate = self;
[self.view addSubview:_picker];
//协议
- (void)PickerSelectorIndixInfo:(NSDictionary *)info {
/*
* 判断类型;
* 时间类型字典的key为year、month、day;
* 地点类型字典key为province、city、area;
* 其他,字典key为:info;
*/
}
如果你发现一个bug,请创建一个issue。欢迎提出pull requests。更多信息请查看代码。 如果你发现了bug,请提一个issue。 欢迎给我提pull requests。