I'm trying to replicate the clear queue functionality of the iPod application, however I can't create an empty MPMediaItemCollection with which to call setQueueWithItemCollection:
e.g.
[self.musicPlayer setQueueWithItemCollection:[MPMediaItemCollection collectionWithItems:[NSArray array]]];
where musicPlayer is a MPMusicPlayerController.
throws an exception:
*** Terminating app due to uncaught exception 'MPMediaItemCollectionInitException', reason: 'items array must not be empty'
Is there a way to clear a MPMusicPLayerController queue that avoids this problem?
Any help is greatly appreciated, CV