/LIYDateTimePicker

An iOS view controller for picking a date and time in a quick, intuitive fashion

Primary LanguageObjective-CMIT LicenseMIT

LIYDateTimePicker

Version License Platform

Calendar

Calendar

Usage

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

All you need to use this in your app is:

LIYDateTimePickerViewController *vc = [LIYDateTimePickerViewController timePickerForDate:[NSDate date] delegate:self];
[self.navigationController pushViewController:vc animated:YES];

And implement the LIYDateTimePickerDelegate:

- (void)dateTimePicker:(LIYDateTimePickerViewController *)dateTimePickerViewController didSelectDate:(NSDate *)selectedDate {
    NSLog(@"Selected date: %@", [selectedDate description]);
    [self.navigationController popViewControllerAnimated:YES];
}

Requirements

LIYDateTimePicker requires either iOS 7.x and above.

Installation

Simply add the following lines to your Podfile:

pod 'JTCalendar', :git => 'https://github.com/kgellci/JTCalendar.git', :branch => 'master' # This must be placed before LIYDateTimePicker
pod 'LIYDateTimePicker', :git => 'https://github.com/lyahdav/LIYDateTimePicker.git'

Author

Liron Yahdav

License

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

Attribution

Thanks to Icons8 for the Checklist icon