OAUClock 0.1.1

OAUClock 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2015

Maintained by Austin Ugbeme.



OAUClock 0.1.1

  • By
  • Austin Ugbeme

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 7.0
  • Xcode 7.0
  • ARC

Installation

OAUClock is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "OAUClock"

Configuration

  1. Import "OAUClock.h" into desired view controller:

    #import "OAUClock.h"
  2. Initialize the clock. Typically in your viewDidLoad method:

    self.clock = [[OAUClock alloc] initWithFrame:CGRectMake(0, 0, 240, 240)];
    [self.view addSubview:self.clock];
  3. 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;

License

OAUClock is available under the MIT license. See the LICENSE file for more info.