A custom time picker just like the Google Calendar Android App
![Example](https://raw.github.com/e-sites/ESTimePicker/master/Assets/example.gif)
- Choose your own colors (background, highlight, selection, text)
- Choose your own font
- Both 24 hour notation and AM/PM
- Snap the minute view
- Completelly usable in your own viewcontroller or view
Use cocoapods:
pod 'ESTimePicker', :git => 'https://github.com/e-sites/ESTimePicker'
- (void)viewDidLoad
{
ESTimePicker *timePicker = [[ESTimePicker alloc] initWithDelegate:self]; // Delegate is optional
[timePicker setFrame:CGRectMake(10, 100, 300, 300)];
[self.view addSubview:timePicker];
}
- (void)timePickerHoursChanged:(ESTimePicker *)timePicker toHours:(int)hours
{
[hoursLabel setText:[NSString stringWithFormat:@"%i", hours]];
}
- (void)timePickerMinutesChanged:(ESTimePicker *)timePicker toMinutes:(int)minutes
{
[minutesLabel setText:[NSString stringWithFormat:@"%i", minutes]];
}
This class uses the ESMathUtils
class (which is included)
##License Copyright (C) 2014 e-sites, http://e-sites.nl/. Licensed under the MIT license.