要运行示例项目,请克隆仓库,并首先从 Example 目录中运行 pod install
XBPicker *picker = [XBPicker new];
picker.contents = @[
@[@"1", @"2", @"3"],
@[@"1", @"2", @"3"],
@[@"1", @"2", @"3"],
@[@"1", @"2", @"3"],
@[@"1", @"2", @"3"]
];
[picker show];
[picker setResultBlock:^(NSArray *results) {
NSLog(@"%@", results);
}];
XBPicker 通过 CocoaPods 提供。要安装
它,只需将以下行添加到 Podfile
pod 'XBPicker'
bubiqudong, [email protected]
XBPicker 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。