Latest 2.2.0
Homepage https://github.com/diankuanghuolong/GCDTimerDemo
License MIT
Platforms ios 8.0
Authors

GCDTimerDemo

GCDTimer,解决进入后台,计时器停止问题 使用方法:

将Demo中的 HaiGCDTimerFramework.framework拖入你的项目中,然后在要实现的地方导入,并实现下面方法:
“`   if ([_timeLable.text intValue] <= 0)  
{
HaiTimer *haiTimer = [HaiTimer new];
[haiTimer timerWithTimeout:60 handlerBlock:^(int presentTime) {
NSLog(@"%d",presentTime);
_timeLable.text = [NSString stringWithFormat:@"%d",presentTime];
} finish:^{
_timeLable.text = @"0";
[haiTimer stopGCDTimer];
}];
}



![展示图](https://github.com/diankuanghuolong/GCDTimerDemo/blob/master/GCDTimer/showImages/HaiGCDTimer.gif)

Latest podspec

{
    "name": "HaiGCDTimerPod",
    "version": "2.2.0",
    "summary": "summary HaiGCDTimerPod",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/diankuanghuolong/GCDTimerDemo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "diankuanghuolong": "[email protected]"
    },
    "source": {
        "git": "https://github.com/diankuanghuolong/GCDTimerDemo.git",
        "tag": "2.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "HaiGCDTimerPod/Classes/**/*"
}

Pin It on Pinterest

Share This