Skip to content

Instantly share code, notes, and snippets.

@TachibanaKaoru
Created December 7, 2013 19:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save TachibanaKaoru/7847347 to your computer and use it in GitHub Desktop.
ALAssetsGroup *group;
[group setAssetsFilter:onlyPhotosFilter];
NSInteger lastPhotoIndex = [group numberOfAssets];
NSMutableIndexSet* photoIndexes = [[NSMutableIndexSet alloc] init];
[photoIndexes addIndex:lastPhotoIndex-1];
[group enumerateAssetsAtIndexes:photoIndexes options:nil usingBlock:assetsEnumerationBlock];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment