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