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

Can't create album with same name as a deleted one #32

Closed zhw511006 closed 9 years ago

zhw511006 commented 9 years ago

First, I call saveImage:toAlbum method and it work well, the "Ablum1' is created.

Second, I delete "Album1", and run the code again. I get this error in this method _assetForURLResultBlockWithGroup

What's your suggestions? Thanks!

Kjuly commented 9 years ago

What's the iOS version & lib version u used? And it's better offer some code snippet that u used.

zhw511006 commented 9 years ago

I have tested this on iOS8.3 and latest lib version.

I simply use this code:

[_assetsLibrary saveImage:image toAlbum:@"Album1" completion:nil failure:nil];

when I delete Album1 and run this code again, it will crash...

screen shot 2015-06-02 at 9 20 46 am

zhw511006 commented 9 years ago

http://stackoverflow.com/questions/25807021/cannot-create-album-with-same-name-as-a-deleted-one-on-ios I see this link and fix this by adding photos.framwork. Thanks!

Kjuly commented 9 years ago

@zhw511006 cool :)