Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone/iPad itunes library read access?

I looked thru the documentation a bit but didn't see anything of much substance (but I must not be looking in the right place)

What are my options if I want to iterate through a user's itunes library meta data?

Let's say I want to build an Array of all their song titles. Is this possible with current public SDK APIs?

Dave

like image 461
Dave Avatar asked Jul 31 '10 03:07

Dave


1 Answers

Take a look at the MPMusicPlayerController and MPMediaQuery classes, both are available in 3.0.

If you just want to get an array of all songs in the user's library, try this:

MPMediaQuery *query = [[[MPMediaQuery alloc] init] autorelease];
NSArray *items = [query items];
like image 151
conmulligan Avatar answered Sep 22 '22 20:09

conmulligan