Hello everyone. I'm programming an iPhone app and this is my question.
I have a NSTimer with an interval of 3 seconds that fires to decrease a value. In the other hand, when I do an action that increase that value I want to restart the timer to count from 3 seconds.
For example, if I increase the value and timer will fires on 1 second, I want to change it and set timer to fire on 3 seconds. May I invalidate timer and create it again?
I don't know if you understand me, I'm not english and I don't know if I explain it well.
Thank you very much.
edit: can i do it with setFireDate with current date and adding an interval of 3 seconds?