有没有一种方法可以让NSOperation的userInfo NSDictionary
for (NSOperation * operation in self.precessQueue.operationsdoing this for this ID, no need to create another op
我有一个带有一些NSOperations的NSOperationQueue (特别是NSInvocationOperations)。此操作执行一些计算并相应地更改UI元素的状态(当然,通过performSelectorOnMainThread:...),通常使用动画。我找到的唯一解决方案是创建一些线程安全的布尔值标志-并在所有线程中检查它(类似于: while !flag sleep_for