Skip to content

Instantly share code, notes, and snippets.

@TachibanaKaoru
Created December 7, 2013 19:26
Show Gist options
  • Save TachibanaKaoru/7847347 to your computer and use it in GitHub Desktop.
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