本文介绍了子类化UIPageControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有图像,但是如何重绘UIPageControl以使用这些图像?

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

推荐答案

UIPageControl不会为您管理任何视图.这是一个非常基本的控件,只显示点.您可以实现页面"视图并使用滑动"手势在它们之间导航,或者您要执行此操作.

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.

有关如何操作的信息,请参见此教程将一个UIPageControl与两个UIView组合在一起以在多个页面之间导航.

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

(要直接解决您的问题的标题-您不要将UIPageControl子类化)

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

这篇关于子类化UIPageControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-13 05:54