[英]how can i get songs from my iphone's ipod to my application in array in iphone sdk?
can i store or just create a customize view which allow user to play songs within from my application when user clicks on songs at that time the iphone's iPod(MusicPlayer) picker should not open
it just show all songs in my application in TableView or PickerView
it allows user to select the songs within my created customized view that TableView or PickerView. 我可以存储还是仅创建一个自定义视图,当用户单击
songs at that time the iphone's iPod(MusicPlayer) picker should not open
允许用户在我的应用程序中播放歌曲songs at that time the iphone's iPod(MusicPlayer) picker should not open
它,而只是my application in TableView or PickerView
显示my application in TableView or PickerView
所有歌曲允许用户在我创建的TableView或PickerView的自定义视图中选择歌曲。 i have also seen this example. 我也看过这个例子。 but it just opens the music player picker view.
但它只是打开音乐播放器选择器视图。 did you get my point is this possible to do that within my application.?
您是否明白我的意思是可以在我的应用程序中做到这一点?
just similar like this question 就像这个问题一样
here i found link that tells use API 3.0 我在这里找到了告诉使用API 3.0的链接
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.
将所有歌曲保存在资源中或在Library Fitch中保存并播放。
You can do, get songs from iPod library. 您可以从iPod库中获取歌曲。 But you could not view it in iPhone simulator.
但是您无法在iPhone模拟器中查看它。 The list of songs name is showed only in device.
歌曲名称列表仅在设备中显示。 If u run in iPhone simulator then it shows errors.
如果您在iPhone模拟器中运行,则会显示错误。
This is the example article for u. 这是您的示例文章。 its useful for get songs from iPod library and play songs.
它对于从iPod库获取歌曲和播放歌曲很有用。
The Music Player Framework in iPhone SDK 3.0 iPhone SDK 3.0中的音乐播放器框架
is the best example for you. 是最适合您的例子。
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.
也许,如果您先使用Apple的内置产品,然后扩展您的应用程序,那么您会逐渐学习。 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.
还有一些示例,说明如何访问ipod音乐库并进行查询以从中获取所需内容。 Your job is to tie these two things together.
您的工作是将这两件事结合在一起。
Yes Amergin is write, this is the good way to get the list. 是的,Amergin是写的,这是获取列表的好方法。 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/
另外,如果您想枚举MPMediaItem的内容,这也是一个很好的方法: http : //www.wptechnology.com/articles/2013/06/16/how-to-nslog-an-mpmediaitem/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.