开发者

Iphone stop assetEnumerator

开发者 https://www.devze.com 2023-01-20 17:52 出处:网络
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL*) = ^(ALAsset *result, NSUInteger i开发者_Python百科ndex, BOOL *stop) {

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

精彩评论

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