Kjuly / ALAssetsLibrary-CustomPhotoAlbum

A nice ALAssetsLibrary category for saving images & videos into custom photo album.
http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/
MIT License
405 stars 101 forks source link

Crash Resolved : After Capturing a photo for the first time. #44

Closed rushisangani closed 8 years ago

rushisangani commented 8 years ago

Application was crashing after capturing a photo for the first time. Added a getter method in this commit. Please merge this to the code to stop the crash in the app.

Kjuly commented 8 years ago

Hi @rushisangani , thx for the PR, but i think the original demo won't have such crash, have u commented out the code snippet below in demo while testing?

[self.assetsLibrary loadAssetsForProperty:ALAssetPropertyAssetURL
                                fromAlbum:kKYCustomPhotoAlbumName_
                               completion:^(NSMutableArray *array, NSError *error) {
                                 self.photoURLs = (array ?: [NSMutableArray array]);
                                 [self.tableView reloadData];
                               }];