如何显示UISrcollView垂直Bar?

发布于 2024-12-28 13:12:17 字数 132 浏览 4 评论 0原文

我在 ipad 的 UIScrollView 中定义了一个 UILabel。 但是当文本大于scrollView时如何显示UISrcollView垂直Bar? 当我触摸scrollView时,垂直条出现,但是如何在不触摸的情况下显示它? 问候 弗雷德

I define a UILabel inside a UIScrollView in my ipad.
But how to display the UISrcollView vertical Bar when the text is bigger than the scrollView ?
When I touch the scrollView the vertical bar appeared, but how to display it without touching ?
Regards
Fred

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

画骨成沙 2025-01-04 13:12:17

我想,这是不可能的。设置showsVerticalScrollIndicator 和showsHorizo​​ntalScrollIndicator 属性就可以显示滚动条。

当视图变得可见时,您可以使用 flashScrollIndicators。它将引导用户可滚动内容可用。

I think, its not possible. Setting showsVerticalScrollIndicator and showsHorizontalScrollIndicator properties you can display the scroll bar.

You can use flashScrollIndicators when the view becomes visible. It will guide user that scrollable content is available.

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