implement alphabetical scroll in MPMediaPickerController app

旧时模样 提交于 2019-12-24 02:26:08

问题


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.


回答1:


Check out this code:

https://github.com/jaminguy/JGMediaPicker




回答2:


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"



来源:https://stackoverflow.com/questions/2570991/implement-alphabetical-scroll-in-mpmediapickercontroller-app

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