JLPickerCollection 0.1.4

JLPickerCollection 0.1.4

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2019年9月

Joey Lee维护。



  • by
  • Joey Lee

JLPickerCollection

[![CI 状态](http://img.shields.io/travis/Joey Lee/JLPickerCollection.svg?style=flat)](https://travis-ci.org/Joey Lee/JLPickerCollection) Version License Platform

示例

要运行示例项目,先克隆仓库,然后从 Example 目录中运行 pod install

所需条件

安装

JLPickerCollection 可以通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中

pod "JLPickerCollection"

使用方法

JLDatePickerView *picker = [JLDatePickerView instance];
picker.datePicker.datePickerMode = UIDatePickerModeTime;
picker.datePicker.minuteInterval = 30;
[picker showPickerViewWithDate:[NSDate date]
                       minDate:nil
                       maxDate:nil
                        onView:self.view
                   resultBlock:^(BOOL success, NSDate *date) {
                       NSLog(@"success : %d, date : %@", success, date);
                   }];
[[JLTextPickerView instance] showPickerView:@[@"AAA",@"BBB",@"ccc",@"111",@"567"]
                               currentIndex:2
                                     onView:self.view
                                resultBlock:^(BOOL success, NSInteger index, NSString *name) {
                                    NSLog(@"success : %d, index : %d, name : %@", success, (int)index, name);
                                }];

示例

作者

Joey Lee, [email protected]

授权协议

JLPickerCollection 在 MIT 授权协议下提供。有关更多信息,请参阅 LICENSE 文件。