Hi
Can anyone tell me if its possible to create a NSTimer with a constantly changing NSTimeInterval?
Basically, I want to create just on NSTimer object, and then change the time interval depending on the swipe velocity.
Hi
Can anyone tell me if its possible to create a NSTimer with a constantly changing NSTimeInterval?
Basically, I want to create just on NSTimer object, and then change the time interval depending on the swipe velocity.
I think you need to use addTimer:forMode:
Have a look at the developer Timers.html Unscheduled Timers maybe what you are after. I think you would invalidate the last timer first.
See [NSTimer setFireDate][1]:
Can also be used to 'suspend' timers.