如何在数组中获取 ipodLibrary 中所有歌曲的列表

问题描述:

可能的重复:
如何从我的 iphone 的 ipod 中获取歌曲到我在 iphone sdk 中的应用程序?

NSMutableArray *collectionMutableCopy = [[NSMutableArray alloc] initWithArray:myMediaItemCollection.items];

我想以数组的形式获取 ipod 中所有歌曲的列表,上面的代码对吗?

i want to get the list of all the songs which are there in my ipod in an array is the above code right ?

只需使用 MPMediaPickerController.

看看这个教程:Tuto