简体   繁体   English

UIScrollView指标总是显示?

[英]UIScrollView indicator always show?

its possible to make UIScrollView indicator always show? 它可以使UIScrollView指标始终显示? and not only when scrolling! 而且不仅在滚动时!

Thank you. 谢谢。

You can't. 你不能。 This is part of the interface guidelines. 这是界面指南的一部分。 What you can do alternatively is flash them in some sensible circumstances (the view becomes visible, moves onto the screen, or similar) using the - (void)flashScrollIndicators method. 您可以做的是使用- (void)flashScrollIndicators方法在一些明智的情况下(视图变得可见,移动到屏幕上或类似)闪烁它们。

You can use this custom scroll bar: 您可以使用此自定义滚动条:
https://github.com/BasheerSience/BRScrollBar https://github.com/BasheerSience/BRScrollBar

To always show the scroll bar you just need to do this: 要始终显示滚动条,您只需执行以下操作:

brScrollBar =[BRScrollBarController initForScrollView:self.tableView
                                               onPosition:kIntBRScrollBarPositionRight
                                                 delegate:self];
brScrollBar.scrollBar.hideScrollBar = NO;

The scroll bar has many features, and its draggable. 滚动条有许多功能,并且可拖动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM