What are you trying to accomplish by running a timer when the phone is locked?
Im trying to let the user timer something while the phone is locked. Did consider using a timestamp when the timer is started, then an nstimer to compare the current time with the time stamp... but that also seems a long way round something that should be simple!
I'm sure there are some excellent reasons why timers are not kept running when your app is no longer in the foreground - e.g. battery life.
Edit: What I mean by "the timestamp way" is to save the current time when the app goes into the background. Then when the app becomes active again, take the time you saved, and now the current time, so you can adjust your timer accordingly.
I'm sure there are some excellent reasons why timers are not kept running when your app is no longer in the foreground - e.g. battery life.
Edit: What I mean by "the timestamp way" is to save the current time when the app goes into the background. Then when the app becomes active again, take the time you saved, and now the current time, so you can adjust your timer accordingly.