iphone - NSTimer stops in the background after some time -


i used nstimer call method after 1 sec when app goes in background , after 17 minutes timer stops working.

when came in foregound again started working, please tell me why happening , how resolve issue.

i tried using perform selector delay in recursion same purpose, again giving same result. please suggest solution. appreciated.

wierd issue- had one, following worked me.

 //run timer on runloop ensure works when app in background    [[nsrunloop currentrunloop]addtimer:self.timer formode: nsdefaultrunloopmode]; 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -