Latest 1.0.1
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit

Build Status

NNPickerController is library for UI. Application user can picke one of element by this UI.


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


On your UIViewController, you write that code,

NSArray *elementsArray ... // Tha element will be picked by PickerController
// Allocate and Initialize

NNPickerController *picker = [[NNPickerController alloc] init];

// Picker's cancel button was clicked handler;
picker.cancelHandler = ^(NNPickerController *picker) {
    [picker dismissPickerController];

// Element was picked handler
picker.finishPickingHandler = ^(NNPickerController *picker, UITableView *tableView,NSIndexPath *indexPath){
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    self.elementLabel.text = elementsArray[indexPath.row];
    [picker dismissPickerController];

// Configuration for Picker Controller
[picker setNumberOfSection:^NSInteger{
    return 1;
} withNumberOfRow:^NSInteger(NSInteger section) {
    return elementsArray.count;
} withCellForRowAtIndexPath:^UITableViewCell *(UITableView *tableView, NSIndexPath *indexPath) {
    NSString *cellIdentifier = [NSString stringWithFormat:@"cell%@/%@", @(indexPath.row),@(indexPath.section)];
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    if (cell != nil) {
        return cell;
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
    cell.textLabel.text = elementsArray[indexPath.row];
    if (indexPath.row == 0) {
        cell.accessoryType = UITableViewCellAccessoryCheckmark;
    return cell;

// show picker controller
[picker showPickerControllerForViewController];


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

pod "NNPickerController"


numa08, [email protected]


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

Latest podspec

    "name": "NNPickerController",
    "version": "1.0.1",
    "summary": "NNPickerController is UI for picking one element.",
    "description": "                       NNPickerController is UI libary. This interface can select one element, like UIPickerController + UIActionSheet.nn                       When ios8, Developer cannot create custom UIActionSheet layout. Now, there can it.n",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "numa08": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "social_media_url": "",
    "platforms": {
        "ios": "6.0"
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "NNPickerController": [
    "frameworks": "UIKit"

Pin It on Pinterest

Share This