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.