Читать об ALAssetsLibrary
вот мой код:
-(void)viewDidLoad{
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
if(result != NULL) {
//Add result to your array for UITableView
}
};
void (^assetGroupEnumerator)(struct ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) {
if(group != nil) {
[group enumerateAssetsUsingBlock:assetEnumerator];
}
};
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupsWithTypes: ALAssetsGroupSavedPhotos
usingBlock: assetGroupEnumerator
failureBlock: ^(NSError *error) {
NSLog(@"Failure: %@", error);
}];
}