簡単な質問: これを行うとどうなりますか:
- (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
、メイン スレッドまたはバックグラウンドで実行されますか?