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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -