Posted By

nd6 on 06/26/11


playlist SDK ios

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Retrieve all Playlists iOS SDK

 / Published in: iPhone

First you need to create an MPMediaQuery using the playListsQuery. Then, you loop through each playlist and retrieve the valueForProperty.

  1. MPMediaQuery *query = [MPMediaQuery playlistsQuery];
  2. NSArray *playlists = [query collections];
  3. for(int i = 0; i < [playlists count]; i++) {
  4. NSLog(@"%@", [[playlists objectAtIndex:i] valueForProperty: MPMediaPlaylistPropertyName]);
  5. }

Report this snippet  

You need to login to post a comment.