Closed likentong closed 10 years ago
Sorry for my late reply. I checked that method and found that it's because of multiple threads issue. Now you can use the new method -loadImagesFromAlbum:completion:
, where u can get a completion
block to be executed when succeed or failed to load images from target album.
- (void)loadImagesFromAlbum:(NSString *)albumName
completion:(void (^)(NSMutableArray *images, NSError *error))completion;
And also, I offered a testing code snippet at PhotosTableViewController.m L80. You can comment it out to see the result. Hope this helps. ;)
Thanks, it works :)
You're welcome ;)
Hi, i found out that the loadPhotosFromAlbum always return empty array. Anyway to fix it?