[](https://travis-ci.org/Joey Lee/JLPickerCollection)
To run the example project, clone the repo, and run pod install
from the Example directory first.
JLPickerCollection is available through CocoaPods. To install it, simply add the following line to your 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, slarinz@gmail.com
JLPickerCollection is available under the MIT license. See the LICENSE file for more info.