Question
How can I programmatically pause an NSTimer?
I'm using an NSTimer to do some rendering in an OpenGL based iPhone app. I have a modal dialog box that pops up and requests user input. While the user is providing input I'd like to "pause" i.e. something like this:
[myNSTimer pause];
I'm using this syntax because I've been doing things like:
[myNSTimer invalidate];
when I want it to stop.
How can I programmatically pause the NSTimer?