Skip to content

Instantly share code, notes, and snippets.

@Bayonetta
Created June 18, 2015 02:39

Revisions

  1. Bayonetta created this gist Jun 18, 2015.
    11 changes: 11 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    //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");
    }