Declared in NSTimer+Blocks.h
NSTimer+Blocks.m

Overview

Additional functionality for NSTimer with block functionality.

Class Methods

scheduledTimerWithTimeInterval:repeats:block:

Additional functionality for NSTimer with block functionality.

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats block:(void ( ^ ) ( void ))block

Parameters

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

timerWithTimeInterval:repeats:block:

Additional functionality for NSTimer with block functionality.

+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats block:(void ( ^ ) ( void ))block

Parameters

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

Instance 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 ))block

Parameters

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