UIScrollView - 带白点的滚动指示器(就像在主屏幕上一样)

发布于 2024-12-26 12:50:51 字数 96 浏览 3 评论 0原文

我想更改 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风吹过旳痕迹 2025-01-02 12:50:51

为此,您需要添加 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.

迷你仙 2025-01-02 12:50:51

这是一个 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文