TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2015 |
Maintained by Austin Ugbeme.
To run the example project, clone the repo, and run pod install
from the Example directory first.
OAUClock is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "OAUClock"
Import "OAUClock.h" into desired view controller:
#import "OAUClock.h"
Initialize the clock. Typically in your viewDidLoad
method:
self.clock = [[OAUClock alloc] initWithFrame:CGRectMake(0, 0, 240, 240)];
[self.view addSubview:self.clock];
Various configurations exist for OAUClock. Some example controls include: To set the current hour/minute/sec respectively
self.clock.hour = 10;
self.clock.minute = 10;
self.clock.seconds = 30;
To control the AM/PM text
self.clock.showMeridies = YES;
self.clock.meridiesColor = [UIColor redColor];
To allow clock track the devices' time
self.clock.realTime = YES;
OAUClock is available under the MIT license. See the LICENSE file for more info.