Skip to content

JanyGee/JGOCTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JGOCTimer

Version License Platform Swift-5.0

JGOCTimer is a lightweight timer extension for OC. Swift

Installation

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

pod "JGOCTimer"

Usage

#import "JGTimer.h"

Methods

executeTask: start: interval: repeats: async:(BOOL)async

[JGTimer execTask:self selector:@selector(doTask) start:2.0 interval:1.0 repeats:YES async:NO];

executeTask: selector: start: interval: repeats: async:

[JGTimer executeTask:^{[self doTask];} start:2.0 interval:1.0 repeats:YES async:NO];