xcode 如何将 uipagecontrol 点更改为每个点之间的数字和空格
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11981676/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to change uipagecontrol dots to number and space between each dots
提问by user1567555
how to change uipagecontrol dots to number and space between each dots.so it was very easy to initialize the page control events and also spaces for all dots.Now for me i using dots for changing page in uipagecontrol.
如何将 uipagecontrol 点更改为数字和每个点之间的空间。因此很容易初始化页面控制事件以及所有点的空间。现在对我来说,我使用点来更改 uipagecontrol 中的页面。
回答by Peter Pajchl
UIPageControl
class doesn't provide such functionality, it is very simple control. You have to create your own class to get the desired functionality. Refer to this question Subclassing UIPageControlfor more information.
UIPageControl
class 不提供这样的功能,它是非常简单的控件。您必须创建自己的类才能获得所需的功能。有关更多信息,请参阅此问题Subclassing UIPageControl。
回答by marika
It's quite easy to generate your own buttons with page numbers which would work very similar to UIPageControl, see this tutorial for details:
生成自己的带有页码的按钮非常容易,这些按钮的工作方式与 UIPageControl 非常相似,有关详细信息,请参阅本教程:
http://iosdevtricks.blogspot.com/2013/05/uiscrollview-with-page-numbers-similar.html
http://iosdevtricks.blogspot.com/2013/05/uiscrollview-with-page-numbers-similar.html