TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | BSD |
ReleasedLast Release | Dec 2014 |
Maintained by Bas van Kuijck.
A custom time picker just like the Google Calendar Android App
Use cocoapods:
pod 'ESTimePicker'
And then import the desired .h file:
#import "ESTimePicker.h"
- (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]];
}
The official documentation can be found here.
This class uses the ESMathUtils
class (which is included)
Copyright (C) 2014 e-sites, http://e-sites.nl/. Licensed under the BSD license.