Reset an NSTimer's firing time to be from now instead of the last fire
问题 I have a NSTimer that fires with an interval of 3 seconds to decrease a value. When I do an action that increases that value, I want to restart the timer to count 3 seconds from that point. For example, if I increase the value and timer will fires in 1 second, I want to change that and make the timer fire in 3 seconds instead. Can I invalidate the timer and create it again? Or can I do it with setFireDate: , using the current date and adding an interval of 3 seconds? 回答1: Yes, you can