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

License MIT 
CocoaPods 
Support 

A timer based on GCD implementation provides pause and recovery functions.

Features

  • Timer: Based on GCD.
  • Pause&Resume: Provide pause and resume methods.
  • Block: Support block callback.

Usage

    self.timer = [YXTimer timerWithTimeInterval:1.0 target:self selector:@selector(timer:)];

    [self.timer pause];
    [self.timer resume];

    self.timer1 = [YXTimer timerWithTimeInterval:1.0 block:^{
        NSLog(@"block");
    }];

    [self.timer1 pause];
    [self.timer1 resume];
    [self.timer1 invalidate];

Installation

CocoaPods

  1. Add pod 'YXTimer' to your Podfile.
  2. Run pod install or pod update.
  3. import <YXTimer/YXTimer.h>.

Latest podspec

{
    "name": "YXTimer",
    "summary": "A timer based on GCD implementation provides pause and recovery functions.",
    "version": "1.0.0",
    "homepage": "https://github.com/xinghanjie/YXTimer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Heikki": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/xinghanjie/YXTimer.git",
        "tag": "1.0.0"
    },
    "source_files": "YXTimer/*.{h,m}",
    "requires_arc": true,
    "public_header_files": "YXTimer/*.{h}"
}

Pin It on Pinterest

Share This