开发者

Iphone stop assetEnumerator

void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger i开发者_Python百科ndex, BOOL *stop) {

How can I stop the assetEnumerator run loop?

Thanks.


Pretty much what the documentation says:

in the block do:

*stop = YES;

Then after you current "iteration", it'll cease to enumerate the assets.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜