iOS iTunes Integration
Can I access the iTunes library of the iPhone inside my app? if s开发者_Go百科o, are there any good tutorials or documentation on the subject?
If you want to control the iPod then you can look at MPMusicPlayerController class or MPMediaQuery class for querying the iTunes library.
You'll find full documentation here:
http://developer.apple.com/iphone/library/documentation/Audio/Conceptual/iPodLibraryAccess_Guide/Introduction/Introduction.html
You can use the MediaPlayer framework to access the iPod library on the device. You can use the MPMediaPickerController and other related classed to to choose songs or playlists to play in your app, but beyond that you can't do much else.
You can also create queries to select specific types of media.
You cannot access the iPod library audio files.
You can however look up useless metadata, or ask the iPod software to play a tune on your behalf.
It's quite crippled.
精彩评论