views:

7

answers:

1

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

How can I stop the assetEnumerator run loop?

Thanks.

A: 

Pretty much what the documentation says:

in the block do:

*stop = YES;

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

Sahil