UIScrollView indicator always show?

2019-01-14 02:17发布

its possible to make UIScrollView indicator always show? and not only when scrolling!

Thank you.

2条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-01-14 02:29

You can use this custom scroll bar:
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.

查看更多
聊天终结者
3楼-- · 2019-01-14 02:42

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.

查看更多
登录 后发表回答