ios - NSTimer is not calling in background method -


i got stuck in problem. i'm trying run timer in method in background resulting timer not initiating. got know timer can't initialized in background there way this?

you can perform operation on main thread.

[self performselectoronmainthread:@selector(inittimer) withobject:nil waituntildone:no]; 

and then

- (void)inittimer { // init timer here. } 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -