Can UIScrollView's deceleration rate be modified?

前端 未结 5 704
失恋的感觉
失恋的感觉 2020-12-14 01:36

Since this question was originally asked, UIScrollView deceleration rate customization has been added via the decelerationRate property introduced in OS 3.0.

5条回答
  •  一向
    一向 (楼主)
    2020-12-14 02:24

    Yes, I have successfully changed the deceleration rate by doing the following:

    scrollView.decelerationRate = UIScrollViewDecelerationRateFast;
    

提交回复
热议问题