6

I use category ALAssetsLibrary+CustomPhotoAlbum to save image into a custom name album.

I recently encounter this problem: if i have an album (ex: myAlbum) in library, after i deleted it ALAssetsLibrary+CustomPhotoAlbum unable to create an album with same name.

After debuging, i found out that the call to

[ALAssestLibrary addAssetsGroupAlbumWithName:resultBlock:failureBlock]

successfully return (the resultBlock was called). But the album is not created.

Anyone has same problem?

Kjuly
  • 32,573
  • 22
  • 98
  • 112
jAckOdE
  • 2,282
  • 7
  • 34
  • 64
  • i have the exact same problem with iOS 8. Any luck? – Sam B Oct 08 '14 at 03:16
  • 1
    http://stackoverflow.com/questions/26003211/assetslibrary-framework-broken-on-ios-8 – Sam B Oct 08 '14 at 03:18
  • haven't got any. Thanks for the links, did you give Photo Framework a shot? – jAckOdE Oct 08 '14 at 07:29
  • 1
    no i didn't. I couldn't find any sample code of how to create one using new photo framework. though since its a bug with iOS 8 I doubt the results will be any different – Sam B Oct 08 '14 at 12:10
  • Per apple's documentation, the Assets library has been practically depreciated. Use the photo framework. You'll also get more detailed reasons on why things don't work if they don't. – TheCodingArt May 13 '15 at 15:19

1 Answers1

7

I know my answer is very late but in case anyone face the same problem like me. The problem appears with me in iOS 8.0 or later and the solution is to use Photos.framework. Use the updated category from Github and please don't forget to import Photos.framework.

Kjuly
  • 32,573
  • 22
  • 98
  • 112
Hossam Ghareeb
  • 6,622
  • 3
  • 47
  • 61