Skip to content

Instantly share code, notes, and snippets.

@sgoodwin
Forked from anonymous/gist:10170966
Created April 8, 2014 18:55
Show Gist options
  • Save sgoodwin/10171061 to your computer and use it in GitHub Desktop.
Save sgoodwin/10171061 to your computer and use it in GitHub Desktop.
NSInteger assetCount = [group numberOfAssets];
if(assetCount <= 0){
return;
}
[group setAssetsFilter:[ALAssetsFilter allPhotos]];
NSIndexSet *indexes = [NSIndexSet indexSetWithIndex:assetCount-1];
// instead of this:
[group setAssetsFilter:[ALAssetsFilter allPhotos]];
NSInteger assetCount = [group numberOfAssets];
if(assetCount <= 0){
return;
}
NSIndexSet *indexes = [NSIndexSet indexSetWithIndex:assetCount-1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment