Latest 0.0.6
Homepage https://github.com/liuyik/LYPickerChiceView
License MIT
Platforms ios 7.0, requires ARC
Authors

封装的UIPickerView
选择填写个人资料

效果图

LYPickerChiceView

根据枚举来显示选择类型

//数据类型枚举
typedef NS_ENUM(NSInteger, DATATYPE) {
LYPickerDataCustom,//自定义
LYPickerDataGender,//性别
LYPickerDataHeight,//身高
LYPickerDataWeight,//体重
LYPickerDataSalary,//工资
LYPickerDataDete,//时间
LYPickerDataArea//地点
};

用法

下载后拖入工程,或者用pod 安装
pod ‘LYPickerChiceView’, ‘~> 0.0.6’
下载地址: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;
     */    
 }

more

if you find a bug, please create a issue.
Welcome to pull requests.
More infomation please view code.
如果你发现了bug,请提一个issue。
欢迎给我提pull requests。

Latest podspec

{
    "name": "LYPickerChiceView",
    "version": "0.0.6",
    "summary": "A picker chice view used on iOS.",
    "homepage": "https://github.com/liuyik/LYPickerChiceView",
    "license": "MIT",
    "platforms": {
        "ios": "7.0"
    },
    "authors": {
        "liuyik": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liuyik/LYPickerChiceView.git",
        "tag": "0.0.6"
    },
    "requires_arc": true,
    "resources": "LYPickerChiceView/*.{png,xib,nib,bundle,plist}",
    "source_files": "LYPickerChiceView/*.{h,m}"
}

Pin It on Pinterest

Share This