0

The ALAssetsLibraryChangedNotification is not working in IOS 5.0. It works fine in the older IOS 4 version. How can I get it to wrok in IOS 5.0?

Linger
  • 14,942
  • 23
  • 52
  • 79
showtimefan
  • 47
  • 1
  • 5

1 Answers1

3

It is an ios5.0 Bug.

you can do one of the following:

1.) Call [self.assetsLibrary writeImageToSavedPhotosAlbum:nil metadata:nil completionBlock:^(NSURL *assetURL, NSError *error) { }]; immediately after creating instance of ALAssetsLibrary

2.) Observe ALAssetsLibraryChangedNotification (not NSManagedObjectContextObjectsDidChangeNotification)

Linger
  • 14,942
  • 23
  • 52
  • 79