Skip to content

Instantly share code, notes, and snippets.

@Bayonetta
Created June 18, 2015 02:39
Show Gist options
  • Save Bayonetta/f3f69a377252cceac71f to your computer and use it in GitHub Desktop.
Save Bayonetta/f3f69a377252cceac71f to your computer and use it in GitHub Desktop.
Get And Detect Camera Roll Group
//To get photos from camera roll use ALAssetsGroupSavedPhotos while enumerating assets library:
[library enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos
usingBlock:enumerate
failureBlock:nil];
//To detect what group you currently get:
if ([[group valueForProperty:@"ALAssetsGroupPropertyType"] intValue] == ALAssetsGroupSavedPhotos)
{
NSLog(@"Camera roll");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment