NSTimer(Blocks) Category Reference
| Declared in | NSTimer+Blocks.h NSTimer+Blocks.m |
Class Methods
scheduledTimerWithTimeInterval:repeats:block:
Additional functionality for NSTimer with block functionality.
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats block:(void ( ^ ) ( void ))blockParameters
- seconds
The time until the timer fire.
- repeats
A flag for having the timer repeat.
- block
The block that will be called by the timer.
Return Value
The NSTimer object.
Declared In
NSTimer+Blocks.htimerWithTimeInterval:repeats:block:
Additional functionality for NSTimer with block functionality.
+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats block:(void ( ^ ) ( void ))blockParameters
- seconds
The time until the timer fire.
- repeats
A flag for having the timer repeat.
- block
The block that will be called by the timer.
Return Value
The NSTimer object.
Declared In
NSTimer+Blocks.hInstance Methods
initWithFireDate:interval:repeats:block:
Additional functionality for NSTimer with block functionality.
- (instancetype)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)seconds repeats:(BOOL)repeats block:(void ( ^ ) ( void ))blockParameters
- date
The date the timer will first fire.
- seconds
The time until the timer fire.
- repeats
A flag for having the timer repeat.
- block
The block that will be called by the timer.
Return Value
The NSTimer object.
Declared In
NSTimer+Blocks.h