0

void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {

如何停止assetEnumerator 运行循环?

谢谢。

4

1 回答 1

0

几乎是文档所说的:

在块做:

*stop = YES;

然后在您当前的“迭代”之后,它将停止枚举资产。

于 2010-10-23T18:38:12.463 回答