Skip to content

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

License

Notifications You must be signed in to change notification settings

lyahdav/LIYDateTimePicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •