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" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -