Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIScrollView indicator always show?

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

Thank you.

like image 469
a_triant Avatar asked Jul 20 '10 14:07

a_triant


People also ask

How to show scroll indicator always in Swift?

Indicator only to reappear when the user touches the screen. To show indicator continuously without touching screen you can add flashScrollIndicators() method in Timer.

What is flashScrollIndicators?

Displays the scroll indicators momentarily. iOS 2.0+ iPadOS 2.0+ Mac Catalyst 13.0+ tvOS 9.0+

How do I show the scroll bar in react native?

Create the custom scroll barAdd a View component whose height is set to 100% . This will display the scroll bar with as much height as the height of its parent container. The width in the above code snippet can be customized with the value you can provide.

What is scroll view in Swift?

The scroll view displays its content within the scrollable content region. As the user performs platform-appropriate scroll gestures, the scroll view adjusts what portion of the underlying content is visible. ScrollView can scroll horizontally, vertically, or both, but does not provide zooming functionality.


2 Answers

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.

like image 64
rfunduk Avatar answered Oct 09 '22 18:10

rfunduk


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.

like image 40
Basheer_CAD Avatar answered Oct 09 '22 17:10

Basheer_CAD