假设网络消息启动了回调方法。执行异步回调方法的顺序一个线程
- (void)didReceiveNetworkMessage {
[obj respondToMethod];
}
- (void)myBigMethod {
[obj mySmallMethod1];
[obj mySmallMethod2];
/* network message received now */
[obj mySmallMethod3];
[obj mySmallMethod4];
}
obj
在单线程环境中调用的方法以什么顺序执行?
是否myBigMethod和didReceiveNetworkMessage被称为在同一个线程? – 2013-02-23 19:14:35