ddh

DDHTimerControl

A control to input minutes or seconds.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

211

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

DDHTimerControl

A control to input minutes or seconds.

Usage

DDHTimerControl *timerControl = [DDHTimerControl timerControlWithType:DDHTimerTypeEqualElements];
timerControl.translatesAutoresizingMaskIntoConstraints = NO;
timerControl.color = [UIColor orangeColor];
timerControl.highlightColor = [UIColor redColor];
timerControl.minutesOrSeconds = 11;
timerControl.titleLabel.text = @"min";
timerControl.userInteractionEnabled = NO;
[contentView addSubview:timerControl];

Currently there are three types supported:

/**
 *  Type of the timer ring
 */
typedef NS_ENUM(NSUInteger, DDHTimerType) {
    /**
     *  The ring looks like a clock
     */
    DDHTimerTypeElements = 0,
    /**
     *  All the elements are equal
     */
    DDHTimerTypeEqualElements,
    /**
     *  The ring is a solid line
     */
    DDHTimerTypeSolid,
    /**
     *  The number of the different types
     */
    DDHTimerTypeNumberOfTypes
};

Requirements

ARC and iOS7

Installation

Using CocoaPods

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

pod "DDHTimerControl"

Manual

Download the project and add the files DDHTimerControl.{h,m} to your project.

Author

Dominik Hauser, dominik.hauser@dasdom.de

License

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

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