Latest 0.0.1
Homepage https://github.com/idevzhou/ZYYTimerAdd
License MIT
Platforms ios , requires ARC
Authors

Pod Version
Pod License
Pod Platform
Carthage compatible

NSTimer with block callback.

Installation

From CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SVProgressHUD in your projects. First, add the following line to your Podfile:

pod 'ZYYTimerAdd'

If you want to use the latest features of SVProgressHUD use normal external source dependencies.

pod 'ZYYTimerAdd', :git => 'https://github.com/idevzhou/ZYYTimerAdd.git'

Manually

Drag the ZYYTimerAdd/ZYYTimerAdd/ZYYTimerAdd folder into your project.

Usage

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti
                                    repeats:(BOOL)yesOrNo
                                   callback:(ZYYVoidBlock)callback;
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti
                                      count:(NSInteger)count
                                   callback:(ZYYVoidBlock)callback;                                 
- (void)fireTimer;
- (void)unfireTimer;
- (void)invalid;

Latest podspec

{
    "name": "ZYYTimerAdd",
    "version": "0.0.1",
    "summary": "A useful category of NSTimer.",
    "description": "A detail description of ZYYTimerAdd in Markdown format.",
    "homepage": "https://github.com/idevzhou/ZYYTimerAdd",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "idevzhou": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/idevzhou/ZYYTimerAdd.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "ZYYTimerAdd",
        "ZYYTimerAdd/ZYYTimerAdd/ZYYTimerAdd/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This