Request for Tutorial on how to make an NSTimer run in the background (multitasking)
Could anyone post some sample code, or write a tutorial on how to make an NSTimer keep on running when the app that contains it is in the background?
The Apple documentation is limited/non-existant. I think it involves: beginBackgroundTaskWithExpirationHandler, but I haven't successfully used it to make an app where the NSTimer keeps running when in the background.
have u found the answer for your query,I have the same issue,
Quote:
Originally Posted by TGDrakaRG
Could anyone post some sample code, or write a tutorial on how to make an NSTimer keep on running when the app that contains it is in the background?
The Apple documentation is limited/non-existant. I think it involves: beginBackgroundTaskWithExpirationHandler, but I haven't successfully used it to make an app where the NSTimer keeps running when in the background.
Help please!
have u found the answer for your query,I have the same issue,If u know please post here.....It will be great helpfull
//add these two functions. The clock will stay in time even when the app is in the background!
int running;
int startTime;
int timerNow;
NSTimer *timer;