Subclassing UIPageControl

2019-06-04 21:45发布

问题:

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.