NSTimer(GCKAdditions) 類別參考資料
總覽
這是 NSTimer 的類別,可新增實用的強化項目。
類別方法摘要 | |
(NSTimer *) | + gck_scheduledTimerWithTimeInterval:weakTarget:selector:userInfo:repeats: |
建構含有弱目標的 NSTimer。更多... | |
方法詳細資料
+ (NSTimer *) gck_scheduledTimerWithTimeInterval: | (NSTimeInterval) | interval | |
weakTarget: | (id) | target | |
selector: | (SEL) | selector | |
userInfo: | (nullable id) | userInfo | |
repeats: | (BOOL) | repeats | |
建構含有弱目標的 NSTimer。
避免計時器和目標之間的間隔循環。在計時器觸發時,如果目標已釋放,計時器會自動失效。