是否可以在单独的线程中运行类方法(以'+'开头)?通常我会像[myClass myController];我尝试的那样调用方法[NSThread detachNewThreadSelector:myController toTarget:myClass withObject:nil];但没有成功.
[myClass myController];
[NSThread detachNewThreadSelector:myController toTarget:myClass withObject:nil];
cocoa nsthread
cocoa ×1
nsthread ×1