有没有办法隐藏 UIScrollView 中的滚动指示器? [英] Is there a way to hide the scroll indicators in a UIScrollView?
本文介绍了有没有办法隐藏 UIScrollView 中的滚动指示器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个用例,其中这些指标会干扰用户交互.我可以子类化并覆盖一个方法或执行类似的操作来从滚动视图中删除滚动指示器吗?
I've got a use case where those indicators disturb the user interaction. Can I subclass and override a method or do something similar to remove the scroll indicators from the scroll view?
推荐答案
将UIScrollView
的showsHorizontalScrollIndicator
和showsVerticalScrollIndicator
属性设置为没有
.
[tableView setShowsHorizontalScrollIndicator:NO];
[tableView setShowsVerticalScrollIndicator:NO];
这篇关于有没有办法隐藏 UIScrollView 中的滚动指示器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文