gpt4 book ai didi

ios - 如何始终显示 UITextView 的滚动条?

转载 作者:技术小花猫 更新时间:2023-10-29 11:00:06 27 4
gpt4 key购买 nike

UITextView 似乎只是在以下条件下显示滚动条:-
1.view的内容多于View能显示的
2. 用户滚动 UITextView

这样对吗?有什么聪明的方法可以随时显示滚动条吗?

最佳答案

[textView flashScrollIndicators];

UITextView is a subclass of UIScrollView. So there is a method flashScrollIndicators that you can call to prompts the user that the view is scrollable. It only flashes once for few seconds where user comes to a page that contains UIScrollView or its subclass. You may set timer to call this method more than one time.

关于ios - 如何始终显示 UITextView 的滚动条?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1908023/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com