[self request]; //main thread
- (void)request {
[self performSelectorInBackground:@selector(regFun) withObject:nil];
}
- (void)regFun {
CFRunLoopRun();
CCLOG(@"CFRunLoopRun not work");
}
Given the previous code, do you know why CFRunLoopRun()
is not working?. I need to call regFun
in background.
Are there any other ways to stop background thread?