I have my application displaying a MPMediaPickerController. I would like to save the MediaItem and start it playing again on startup. I think this is d
MPMediaPickerController
MediaItem
This should work:
MPMediaQuery *query = [MPMediaQuery songsQuery]; MPMediaPropertyPredicate *predicate = [MPMediaPropertyPredicate predicateWithValue:myPersistentID forProperty:MPMediaItemPropertyPersistentID]; [query addFilterPredicate:predicate]; NSArray *songs = [query items];