Skip to content

buhikon/JLPickerCollection

Repository files navigation

JLPickerCollection

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

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

JLPickerCollection is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JLPickerCollection"

Usage

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);
                                }];

Demo

Author

Joey Lee, slarinz@gmail.com

License

JLPickerCollection is available under the MIT license. See the LICENSE file for more info.

About

simple date picker and picker view.

Resources

License

Stars

Watchers

Forks

Packages

No packages published