UIScrollView weird ScrollIndicator compared to UITableView

I am using UIScrollView, and while scrolling through it, I noticed that the ScrollIndicator was shrinking based on my scrolling. But this does not apply to UITableView.

I tried to do it [scrView setBounces:NO], but that does not make it more convenient for the user, and also prevents the scroll movement.

Is there a way to make the UIScrollView scrollIndicator the same as the UITableView scrollIndicator ?

Thanks for any help!

+3
source share
1 answer

For the UITableViewController, you can disable Bounces, which means that the tableView cannot be resiliently raised up and then bounces back. This also means that the scroll bar will not decrease.

, setBounces:

[self.tableView setBounces:NO];

UIScrollView. . : http://developer.apple.com/library/ios/documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/occ/instp/UIScrollView/bounces

0

All Articles