Created
June 18, 2015 02:39
-
-
Save Bayonetta/f3f69a377252cceac71f to your computer and use it in GitHub Desktop.
Get And Detect Camera Roll Group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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