Latest 0.0.3
License MIT
Platforms ios 8.0, requires ARC


GCDTimer is use replace NSTimer, so it can ellipsis invalited Timer, and use simple.
Support merge previous task of the same timer, or abandoned previous task of the same timer.
Efficiency than NSTimer.

Adding KG_GCDTimer to your project


CocoaPods is the recommended way to add KG_GCDTimer to your project.

  1. Add a pod entry for KG_GCDTimer to your Podfile pod 'KG_GCDTimer'
  2. Install the pod(s) by running pod install.
  3. Include KG_GCDTimer wherever you need it with #import "KG_GCDTimer.h".

Source files

Alternatively you can directly add the KG_GCDTimer.h and KG_GCDTimer.m source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, then drag and drop KG_GCDTimer.h and KG_GCDTimer.h.m onto your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include KG_GCDTimer wherever you need it with #import "KG_GCDTimer.h".


[[KG_GCDTimer sharedInstance] scheduledDispatchTimerWithName:@"timerName"
                                                       queue:nil                      /* dispatch_get_global_queue */
                                                actionOption:KG_AbandonPreviousAction /* KG_MergePreviousAction */
                                                // do somthing 
[[KG_GCDTimer sharedInstance] cancelTimerWithName:@"timerName"];


This code is distributed under the terms and conditions of the MIT license.


A brief summary of each KG_GCDTimer release can be found in the CHANGELOG.

Latest podspec

    "name": "KG_GCDTimer",
    "version": "0.0.3",
    "summary": "USE GCDTIMER NOT NSTIMER.",
    "description": "GCDTimer",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "KunkkaQI": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.0.3"
    "platforms": {
        "ios": "8.0"
    "source_files": "KG_GCDTimer",
    "requires_arc": true

Pin It on Pinterest

Share This