Access to itunes iPhone / iPad library for reading?

I looked at the documentation a bit, but did not see anything significant (but I should not look at the right place)

What are my options if I want to iterate through itunes library metadata libraries?

Let's say I want to build an array of all my songs. Is this possible using existing SDK public APIs?

Dave

+5
source share
1 answer

Take a look at MPMusicPlayerController and MPMediaQuery , both available in version 3.0.

If you just want to get an array of all the songs in your user library, try the following:

MPMediaQuery *query = [[[MPMediaQuery alloc] init] autorelease];
NSArray *items = [query items];
+5
source

All Articles