如果您转到 iPhone 库,然后转到歌曲,您将看到歌曲以与 MPMediaItemPicker 类类似的方式显示。唯一的区别是 ipod 应用程序在列表顶部显示搜索栏,并且在右侧显示一个漂亮的字母滚动条,而 MPMediaItemPicker 类仅播放一个简单的上下滚动条。
如何在 MPMediaItemPicker 类中实现右侧的字母滚动?
有人可以帮助我吗?
If you go to the iphone library and then go to songs, you will see the songs being displayed in a similar way to the MPMediaItemPicker class does. The only difference is that the ipod application shows the search bar right at the top of the list and also a nice alphabetical scroll on the right hand side whereas the MPMediaItemPicker class only isplays a simple scroll going up and down.
How can i implement an alphabetical scroll on the right in the MPMediaItemPicker class?
Can someone please help me.
发布评论
评论(2)
查看此代码:
https://github.com/jaminguy/JGMediaPicker
Check out this code:
https://github.com/jaminguy/JGMediaPicker
据我所知,除了 文档。
您将需要使用媒体查询(按歌曲、艺术家等)来实现自己的选择器。
我建议阅读: “使用 iPod 库”
As far as i know you cannot customize the MPMediaPickerController yourself beyond of course what is stated in the documentation.
You will need to implement your own picker, using media queries (by song ,by artist, etc).
I suggest reading: “Using the iPod Library” in Apple's "iPod Library Access Programming Guide"