ATPickerView
示例
要运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install
。
#import <ATPickerView/ATPickerView.h>
- 选择器 - 默认
NSArray *items = @[@"语法课", @"自然拼读", @"阅读练习"];
ATPickerView *view = \
ATPickerView.build.withTitle(title).withItems(items).showInWindow();
view.confirmBlock = ^(NSInteger index) {
NSLog(@"selected:%@", items[index]);
};
要求
安装
ATPickerView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile:
pod 'ATPickerView'
作者
ablett,[email protected]
许可协议
ATPickerView 采用 MIT 许可协议。更多信息请参见 LICENSE 文件。