Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
如何停止assetEnumerator 运行循环?
谢谢。
几乎是文档所说的:
在块做:
*stop = YES;
然后在您当前的“迭代”之后,它将停止枚举资产。