Latest 1.0.0
Homepage https://github.com/dasdom/DDHTimerControl
License MIT
Platforms ios 7.0, requires ARC
Authors

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.haus[email protected]

License

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

Latest podspec

{
    "name": "DDHTimerControl",
    "version": "1.0.0",
    "summary": "A UIControl subclass to input seconds or minutes.",
    "homepage": "https://github.com/dasdom/DDHTimerControl",
    "license": "MIT",
    "authors": {
        "Dominik Hauser": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dasdom/DDHTimerControl.git",
        "tag": "1.0.0"
    },
    "screenshots": "https://raw.githubusercontent.com/dasdom/DDHTimerControl/master/DDHTimerControlDemo/screenshot.png",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "DDHTimerControl/*"
}

Pin It on Pinterest

Share This