UIAPPicker 0.0.2

UIAPPicker 0.0.2

测试已测试
语言语言 Obj-CObjective C
许可协议 MIT
发布最后发布2014年12月

Andrei Popescu(昵称proff)维护。.



  • 作者
  • andrei_aka_proff

UIAPPicker 是在不需要使用UIActionSheet的情况下,以简单方式在选定的视图中显示自定义UIPicker的方法。

Podfile

platform :ios, '6.1'
pod "UIAPPicker"

Picker初始化

@property (strong, nonatomic) UIAPPicker *apPicker;

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

显示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

许可协议

UIAPPicker遵循MIT许可协议。有关更多信息,请参阅LICENSE文件。