Skip to content

andproff/UIAPPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIAPPicker

The UIAPPicker is simple way to show custom UIPicker in selected view without using UIActionSheet.

Installation with CocoaPods

This project support installations with CocoaPods

Podfile

platform :ios, '6.1'
pod "UIAPPicker"

Picker initialization

@property (strong, nonatomic) UIAPPicker *apPicker;

- (UIAPPicker *)apPicker
{
    if (!_apPicker) {
        _apPicker = [UIAPPicker pickerForView:self.view delegate:self];
    }
    return _apPicker;
}

Show Picker

[self.apPicker show:@[@"Moscow", @"New York",  @"Paris", @"Berlin", @"Ankara"] withSelectedRow:0];

UIAPPickerDelegate

@protocol UIAPPickerDelegate
- (void)pickerDidCancel:(UIAPPicker *)anPicker;
- (void)picker:(UIAPPicker *)anPicker didSelectItem:(id)anItem;
@end

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published