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
Post a Comment