Latest 0.1.0
Homepage https://github.com/qtdc1229/DCPickerRecord
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit
Authors

Quick recoder for UIPickerView

简介

DCPickerRecord 是用来简化UIPickerView 管理以及使用的组件。

以往使用Picker 需要实现UIPicker 的代理,

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
    NSString *ret = @"";
    // ret = 你某一行显示的内容
    return ret;
}

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
        //选择某一行后的行动
}

- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
    NSInteger ret = 0;  
    // 总共的列数
    return ret;
}

- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
         NSInteger ret = 0;
         //某一列的行数
         return ret;
}

Picker 的选择记录记录比较混乱。

Latest podspec

{
    "name": "DCPickerRecord",
    "version": "0.1.0",
    "summary": "Quick recoder for UIPickerView.",
    "homepage": "https://github.com/qtdc1229/DCPickerRecord",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qtdc1229": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/qtdc1229/DCPickerRecord.git",
        "tag": "v0.1.0"
    },
    "source_files": [
        "DCPickerRecord/DCPickerRecord/*.{h,m}",
        "DCPickerRecord/DynamicDelegate/*.{h,m}"
    ],
    "public_header_files": [
        "DCPickerRecord/DCPickerRecord/*.{h}",
        "DCPickerRecord/DynamicDelegate/*.{h}"
    ],
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This