Latest 1.0.0
Homepage https://github.com/QianKun-HanLin/HLTimerCenter
License MIT
Platforms ios 8.0, requires ARC
Authors

License MIT
CI Status
[CocoaPods](http://cocoapods.org/?q= HLQRCodeScanner)
Support

基于GCD的定时管理器

特点

  1. 基于GCD实现的定时器,稳定好用
  2. 提供Center进行定时器统一管理
  3. 当APP进入后台时自动暂停所有定时器,APP恢复时统一唤醒

====

使用方法

1) 直接创建

[[HLTimerCenter defaultCenter] createTimer:1 afterTime:0 repeatsCount:5 repeats:NO autoPlay:YES handler:^{
    NSLog(@"泡一下");
}];

2) 分步创建

HLTimer *timer = [[HLTimer alloc] initWithTime:1 andAfterTime:0 andRepeatsCount:5 isRepeats:NO completionHandler:^{
        NSLog(@"跑一下");
    }];

[[HLTimerCenter defaultCenter] addTimer:timer autoPlay:NO];

环境要求

该库需运行在 iOS 8.0 和 Xcode 7.0以上环境.

集成方法

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

pod "HLTimerCenter"

作者

wangshiyu13, [email protected]

开源协议

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

Latest podspec

{
    "name": "HLTimerCenter",
    "version": "1.0.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/QianKun-HanLin/HLTimerCenter",
    "authors": {
        "wangshiyu13": "[email protected]"
    },
    "summary": "u57fau4e8eGCDu7684u5b9au65f6u7ba1u7406u5668",
    "source": {
        "git": "https://github.com/QianKun-HanLin/HLTimerCenter.git",
        "tag": "1.0.0"
    },
    "source_files": "HLTimerCenter/Source/**/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This