ESTimePicker

A custom time picker just like the Google Calendar Android App

Showing:

Popularity

Downloads/wk

0

GitHub Stars

88

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

0

License

BSD

Categories

Readme

ESTimePicker

Platform Version

A custom time picker just like the Google Calendar Android App

Example


![Example](https://raw.github.com/e-sites/ESTimePicker/master/Assets/example.gif)

Features

  • Works both in ARC as in MRC
  • 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

Installation

Use cocoapods:

pod 'ESTimePicker'

And then import the desired .h file:

#import "ESTimePicker.h"

Implementation

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

Documentation

The official documentation can be found here.

Dependencies

This class uses the ESMathUtils class (which is included)

License

Copyright (C) 2014 e-sites, http://e-sites.nl/. Licensed under the BSD license.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100