0

Is it possible to delete a song from a MPMediaPlaylist playlist?

I have the ability to get all the songs in a list:

NSArray *songs = [playlist items];

Can I loop through this with a given productID and delete the item?

scgough
  • 5,099
  • 3
  • 30
  • 48
  • It is not possible to remove/modify items of MPMediaPlaylist until now. There is an open radar request already for it: http://www.openradar.me/29314482. You can recreate the playlist after modifying the 'songs' array. – firstinq Aug 08 '17 at 12:10
  • @firstinq thanks - so is it possible to delete an MPMediaPlaylist ? or would I be stuck with multiple instances of the MPMediaPlaylist? – scgough Aug 08 '17 at 12:25
  • @scgough could you solve your problem in the meantime ? – Leo Dec 15 '19 at 11:11
  • @Leo I actually went a different route with this in the end so didn't solve the issue above. – scgough Dec 16 '19 at 10:16

0 Answers0