Latest 0.1.1
Homepage https://github.com/yjh4866/NBLPickerView
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

NBLPickerView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'NBLPickerView'

用法一

NSArray *optionList = @[@"北京", @"天津", @"山西", @"河北"];
NBLPickerView *pickerView = [NBLPickerView showOptionList:optionList withIndexSel:1];
pickerView.constraintPickerViewHeight.constant = 200;
pickerView.titleBackgroundColor = [UIColor whiteColor];
pickerView.separatorColor = [UIColor redColor];
pickerView.labelTitle.text = @"在这里";

__weak typeof(self) weakSelf = self;
pickerView.blockSelectOption = ^(NSInteger index) {
    weakSelf.labelOption.text = optionList[index];
};

预览 Preview

NBLShareView_1

用法二

NBLPickerView *pickerView = [NBLPickerView showOptionList:^NSString * _Nonnull(NSInteger row) {
        return [NSString stringWithFormat:@"%@年", @(1970+row)];
    } withOptionCount:50 andIndexSel:10];
pickerView.constraintPickerViewHeight.constant = 200;
pickerView.titleBackgroundColor = [UIColor whiteColor];
pickerView.separatorColor = [UIColor blueColor];
pickerView.labelTitle.text = @"在这里";

__weak typeof(self) weakSelf = self;
pickerView.blockSelectOption = ^(NSInteger index) {
    weakSelf.labelOption.text = [NSString stringWithFormat:@"%@年", @(1970+index)];
};

预览 Preview

NBLShareView_2

Author

杨建红, [email protected]

License

NBLPickerView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NBLPickerView",
    "version": "0.1.1",
    "summary": "Object-Cu3002u57fau4e8eUIPickerViewu7684u5217u8868u9009u62e9u3002based on UIPickerView.",
    "description": "Object-Cu3002u57fau4e8eUIPickerViewu7684u5217u8868u9009u62e9uff0cu76eeu524du53eau652fu6301u4e00u5217u3002based on UIPickerView.",
    "homepage": "https://github.com/yjh4866/NBLPickerView",
    "screenshots": [
        "https://github.com/yjh4866/NBLPickerView/blob/master/screenshots/screenshots_1.jpg?raw=true",
        "https://github.com/yjh4866/NBLPickerView/blob/master/screenshots/screenshots_2.jpg?raw=true"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u6768u5efau7ea2": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yjh4866/NBLPickerView.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://blog.csdn.net/yjh4866",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "NBLPickerView/Classes/**/*",
    "resource_bundles": {
        "NBLPickerView": [
            "NBLPickerView/Assets/*.{xib}"
        ]
    },
    "public_header_files": "NBLPickerView/Classes/*.h"
}

Pin It on Pinterest

Share This