/ Published in: iPhone
First you need to create an MPMediaQuery using the playListsQuery.
Then, you loop through each playlist and retrieve the valueForProperty.
Then, you loop through each playlist and retrieve the valueForProperty.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
MPMediaQuery *query = [MPMediaQuery playlistsQuery]; for(int i = 0; i < [playlists count]; i++) { NSLog(@"%@", [[playlists objectAtIndex:i] valueForProperty: MPMediaPlaylistPropertyName]); }