Quote:
Originally Posted by eco_bach
Hi
Can anyone tell me if its possible to change the interval of an NSTimer while its firing?
Seems like this should be possible but haven't figured out how...
|
Code:
(NSTimer *)timerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats
Use that method. With the seconds parameter equalling to your interval. For example if seconds = 1; it will fire every one second, 2 every two seconds, etc.