NSTimer(GCKAdditions) Category

NSTimer(GCKAdditions) Category Reference

Overview

A category on NSTimer that adds some useful enhancements.

Class Method Summary

(NSTimer *) + gck_scheduledTimerWithTimeInterval:weakTarget:selector:userInfo:repeats:
 Constructs an NSTimer with a weak target. More...
 

Method Detail

+ (NSTimer *) gck_scheduledTimerWithTimeInterval: (NSTimeInterval)  interval
weakTarget: (id)  target
selector: (SEL)  selector
userInfo: (id _Nullable)  userInfo
repeats: (BOOL)  repeats 

Constructs an NSTimer with a weak target.

Avoids a retain loop between the timer and its target. The timer will be automatically invalidated if the target has been released when the timer fires.

Send feedback about...