0

When I scroll past the top cell (going up) in my UITableView, I release my finger and the UITableView returns back to it's original position with a nice bouncing animation. Is there any way to change the speed with which it scrolls back into the original position?

What I want to do is the following, if you pull the table down further then some 'x' threshold value of contentOffset, I want the table view to bounce back into original position faster than default.

4

1 回答 1

2

UIScrollView有一个decelerationRate可以使用的属性。还有一个常量可以设置为:UIScrollViewDecelerationRateFast

于 2013-06-17T18:16:09.633 回答