views:

110

answers:

1

Hey guys,

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

+1  A: 

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];
conmulligan
thanks for pointing me in the right direction!
CaliforniaDave