Bachalo
Bachalo

Reputation: 7219

Changing the interval of an NSTimer

Can anyone tell me if it's possible to change the interval of an NSTimer while it's firing?

Seems like this should be possible but haven't figured out how.

Basically, I'm trying to create a deceleration effect.

Upvotes: 0

Views: 663

Answers (1)

Noah Witherspoon
Noah Witherspoon

Reputation: 57149

Changing the timer's interval probably isn't the right way to implement a “deceleration” effect—it's better to have the timer updating at the same rate, and change whatever value it's influencing by a little less on each iteration.

Upvotes: 1

Related Questions