Latest 0.8.0
Homepage https://github.com/KochIK/KVTimer
License MIT
Platforms ios 7.0
Authors

The circular timer for iOS – KVTimer

KVTimer

Installation

Using CocoaPods

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

pod "KVTimer"

Manual

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

Usage

KVTimer

/*Create its Outlet -*/ @property (weak, nonatomic) IBOutlet KVTimer *timer;

 self.timer.delegate = self;
 [self.timer setShowTimerLabel:YES];
 [self.timer setMaxTime:120 minTime:0];
 self.timer.interval = KVIntervalSecond;

KVStyle *style = [KVStyle initWithFillColor:[UIColor greenColor]
                                strokeColor:[UIColor blackColor]
                                  lineWidth:2 
                                    radius:10];

 [self.timer setStylePin:<#(KVStyle *)#>]
 [self.timer setStyleLine:<#(KVStyle *)#>]
 [self.timer setStyleCircle:<#(KVStyle *)#>]

 [self.timer startTimer:/* YES / NO */];
 [self.timer setShowTimerLabel:/* YES / NO*/];
 [self.timer setShowKofLabel:/* YES / NO*/];
 [self.timer setKofString:@"min"];
 [self.timer setInterval:KVIntervalMinute /*(KVInterval enum)*/];

Method delegate:

- (void)KVTimer:(KVTimer *)timer willTimeChange:(NSString *)newTime{
   NSLog(@"Time: %@", newTime);
}

- (void)willTimerEnd:(KVTimer *)timer{
   NSLog(@"Oops");
}

Author

Vlad Kochergin, [email protected]

License

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

Latest podspec

{
    "name": "KVTimer",
    "version": "0.8.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/KochIK/KVTimer",
    "authors": {
        "Vlad Kochergin": "[email protected]"
    },
    "summary": "The circular timer for iOS - KVTimer",
    "source": {
        "git": "https://github.com/KochIK/KVTimer.git",
        "tag": "0.8.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "Classes/*.{h,m}",
    "ios": {
        "frameworks": "UIKit"
    }
}

Pin It on Pinterest

Share This