Table of contents
Share Post

Do you want to present by yourself the list of available medias in the user iPod Library instead of having the MediaPickerController doing that ?
Here is the good code for you :)

    //::.. We will get the full list of medias ..::
    MPMediaQuery *fullList = 
[[MPMediaQuery alloc] init]; //::.. lets go ..:: NSArray *mediaList = [fullList items]; for (MPMediaItem *song in mediaList) { NSString *songTitle = [song valueForProperty: MPMediaItemPropertyTitle]; NSString *songArtist = [song valueForProperty: MPMediaItemPropertyArtist]; NSLog (@"%@ "%@"", songArtist, songTitle); }

And if you want to get every information of a media into a dictionary (for example to be able to NSLog it), go through this article :
https://www.wptechnology.com/2013/06/16/how-to-nslog-an-mpmediaitem/