Search code examples
objective-ciosnsnotificationsmpmediaitem

Is there a notification when iPod library got changed?


I want to cache my custom item picker for music from the iPod library, but I need to know when to refresh it (like after a iTunes sync or when the user purchased a new item through the iTunes store).

Is there any notification I can receive to handle a change of the music library?


Solution

  • I found it myself. The notification is called MPMediaLibraryDidChangeNotification and is described in the MPMediaLibrary Class Reference.