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
Here is a Simple swift pause/play timer.
https://github.com/AnthonyUccello/Swift-Pausable-Timer/blob/master/Timer.swift