谁能给我一个样本代码写异步方法使用“单向”(单向无效)的iOS。这样,在方法返回之前,它不会阻塞调用线程。
发布于 2011-06-28 02:36:44
看看NSObject上的-performSelectorInBackground:withObject:方法。在使用异步方法时,我还推荐使用Apples Threading Programming Guide作为一些最佳实践。
NSObject
-performSelectorInBackground:withObject:
https://stackoverflow.com/questions/6492145
相似问题