没有 UIScrollView 的 iOS UIPageControl
从Apple的教程看来,UIPageControl依赖于UIScrollView。我可以单独使用 UIPageControl 在控制器之间导航吗?如果可能的话,是否有任何示例[或者可能是代码片段]可供我阅读? UIPageControl 和 UIScrollView 之间有什么关系?
感谢您的帮助
It seems from Apple's tutorial that UIPageControl is dependant to UIScrollView. Can I just use UIPageControl on its own to navigate between Controllers? If it is possible, is there any example [or possibly a code snippet] that I can read for this? What is the relationship between UIPageControl and UIScrollView?
Thanks for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Fluchtpunkt 是正确的。没有任何关系(除了他们经常在一起)。
这是 UIPageControl
http:// /developer.apple.com/library/ios/#documentation/uikit/reference/UIPageControl_Class/Reference/Reference.html
既然你问...用你自己的自定义图形编写你自己的 PageControl 以适合你的自己的需求和品牌是极其容易的。如果对某些代码感兴趣,请告诉我。
fluchtpunkt is correct. no relationship at all (other than they often go together).
here is a link to the UIPageControl
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPageControl_Class/Reference/Reference.html
and since you're asking... writing your own PageControl with your own custom graphics to fit your own needs and brand is extremely easy. Let me know if are interested in some code.
这两者之间没有关系。您可以使用 UIPageControl 来实现您想要的任何目的。
There is no relationship between those two. You can use an UIPageControl for whatever you want.