简单的问题:如果我这样做会发生什么:
- (void)viewDidLoad
{
[self performSelectorInBackground:@selector(myBGMethod) withObject:nil];
}
-(void)myBGMethod
{
[self myOtherMethod];
}
-(void)myOtherMethod
{
NSLog(@"This is not Inception");
//some more code here
}
NSLog()
和其他代码会myOtherMethod
在主线程还是后台运行?