See
for code that shows you how to get a playlist:
MPMediaQuery *myPlaylistsQuery = [MPMediaQuery playlistsQuery];
NSArray *playlists = [myPlaylistsQuery collections];
for (MPMediaPlaylist *playlist in playlists) {
NSLog (@"%@", [playlist valueForProperty: MPMediaPlaylistPropertyName]);
// ...
}
What you are actually getting is a list of songs (the items
), but they are grouped by playlist. That is why asking for the query's collections
gets you references to the MPMediaPlaylist
objects you are after.