0

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.

jscs
  • 63,694
  • 13
  • 151
  • 195
Bachalo
  • 6,965
  • 27
  • 95
  • 189
  • This question was already asked on s.o. Look here for a solution. (moved from answer ;-) – garph0 Jun 20 '10 at 21:06
  • Possible duplicate of [Restart NSTimer firing interval](http://stackoverflow.com/questions/1582740/restart-nstimer-firing-interval) (which is the *"here"* garph0 referred to). – Georg Fritzsche Jun 20 '10 at 21:30

1 Answers1

1

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.

Noah Witherspoon
  • 57,021
  • 16
  • 130
  • 131