cuS*_*oon 4 iphone multithreading detect nsthread ios
我的iOS应用程序中有异步服务器请求:
[self performSelectorInBackground:@selector(doSomething) withObject:nil];
Run Code Online (Sandbox Code Playgroud)
如何检测此操作的结束?
Mat*_*uch 15
在doSomething方法结束时拨打电话?!
- (void)doSomething {
// Thread starts here
// Do something
// Thread ends here
[self performSelectorOnMainThread:@selector(doSomethingDone) withObject:nil waitUntilDone:NO];
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4505 次 |
| 最近记录: |