iPhone: Using dispatch_after to mimick NSTimer
- by Joseph Tura
Don't know a whole lot about blocks. How would you go about mimicking a repeating NSTimer with dispatch_after? My problem is that I want to "pause" a timer when the app moves to the background, but subclassing NSTimer does not seem to work.
I tried something which seems to work. I cannot judge its performance implications or whether it could be…