UIScrollView - 带白点的滚动指示器(就像在主屏幕上一样)
我想更改 UIScrollview 滚动指示器的样式。 我已打开分页功能,并且希望看到白点(就像在 iPhone 主屏幕上一样)而不是条形图。 有可能吗?
谢谢
I want to change UIScrollview scroll indicator's style.
I have turned paging on and I want to see white points (like on iPhone home-screen) instead of bar.
It is possible?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为此,您需要添加
UIPageControl
以显示滚动指示器,例如主页。另外不要忘记更改 UIPageControl 的当前页面。For this you need to add
UIPageControl
to show scroll indicatior like home. Also don't forgot to change current page of UIPageControl.这是一个 UIPageControl。只需将一个添加到您的视图中(但不是在滚动视图中!)并适当地将其连接起来。另请参阅此问题以了解更多信息 - 如何使用 UIPageControl?
It's a UIPageControl. Just add one to your view (not in the scroll view though!) and wire it up appropriately. See this question for more as well - how do i use a UIPageControl?