tags:

views:

49

answers:

2

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.

A: 

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.

markhunte
A: 

See [NSTimer setFireDate][1]:

Can also be used to 'suspend' timers.

psychotik