how can i get songs from my iphone's ipod to my application in array in iphone sdk?

孤者浪人 提交于 2019-12-02 08:12:26

Yes Amergin is write, this is the good way to get the list. Also if you want to enumerate the content of an MPMediaItem, here's a good method to do that : http://www.wptechnology.com/articles/2013/06/16/how-to-nslog-an-mpmediaitem/

create one view for showing data and create another view to show or play song's. save all your songs in resource or in Library Fitch the songs & play.

It seems to me that maybe you're trying to run before you can walk. It is possible to do what you ask but it is not a trivial amount of code and would involve a considerable effort for someone to describe to you how to do it. Perhaps if you start by using apple's built in offerings and then extend your app you'll learn as you go along. There are examples of how to create a tableview and populate it with your own data. There are also examples of how to access the ipod music library and query it to get whatever you want from it. Your job is to tie these two things together.

Ravi

You can do, get songs from iPod library. But you could not view it in iPhone simulator. The list of songs name is showed only in device. If u run in iPhone simulator then it shows errors.

This is the example article for u. its useful for get songs from iPod library and play songs.

The Music Player Framework in iPhone SDK 3.0

is the best example for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!