Flash scroll indicators when scrolling up

When I click the scroll bar at the top of the UIScrollView, the scroll indicators appear when they scroll and then disappear after they stop.

When I programmatically scroll up using [scrollView setContentOffset:CGPointZero animated:YES] , the scroll indicators disappear when scrolling up.

Is there any way to programmatically create a similar behavior for what happens when a user enters a status bar?

+4
source share
1 answer

Yes, there is and is called so, as you actually expected.

From UIScrollView Link

 flashScrollIndicators 

Briefly displays scroll indicators.

  • (void) flashScrollIndicators

Discussion You should call this method whenever you drag the scroll forward.

Availability Available in iOS 2.0 and later. Announced in UIScrollView.h

+4
source

Source: https://habr.com/ru/post/1385652/


All Articles