IOS | Techbirds | Page 2
-(void)getAlbumPhotos:(NSString *)albumName { __block BOOL albumWasFound = NO; //search all photo albums in the library [self.library enumerateGroupsWithTypes:ALAssetsGroupAlbum usingBlock:^(ALAssetsGroup *group, BOOL *stop) { if([albumName compare: [group valueForProperty:ALAssetsGroupPropertyName]]==NSOrderedSame) { //target album is found albumWasFound = YES; [group enumerateAssetsUsingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) { ALAssetRepresentation *representation = [result defaultRepresentation]; if(result){ UIImage *latestPhoto = [UIImage imageWithCGImage:[representation fullScreenImage]]; [mutPhotoArray