Subclassing UIPageControl

醉酒当歌 提交于 2019-12-08 04:49:56

问题


I have my images, but how do I redraw the UIPageControl to use these images?


回答1:


The UIPageControl does not manage any views for you. It is a very basic control that just displays the dots. It is up to you to implement your 'page' views and navigate between them using 'swipe' gestures or however you want to do it.

See this tutorial for information on how to combine a UIPageControl with two UIViews to navigate between multiple pages.

(To directly address the title of your question - you do not subclass UIPageControl)




回答2:


See Swip from one view to the next view

Apple also has sample code you can use.



来源:https://stackoverflow.com/questions/2020782/subclassing-uipagecontrol

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