jjzjj

enumerateObjectsWithOptions

全部标签

ios - 将完成 block 添加到 enumerateObjectsWithOptions

我需要在完整枚举数组中的所有对象后执行一个操作。如何在Swift中向enumerateObjectsWithOptions(_:usingBlock:)添加完成block。或者如何知道enumerateObjectsWithOptions(_:usingBlock:)何时完成。allVisitors.enumerateObjectsWithOptions(NSEnumerationOptions.Concurrent,usingBlock:{(obj,idx,stop)->Voidin}) 最佳答案 NSArray中的方法enume