Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I disable rubber band inertial scrolling in UIScrollView

I have a scroll view, it scrolls my view. If I scroll far up or far down, it shows white space. I believe this is known as the rubber band effect or inertial scrolling. Is there a documented or allowed way I can disable this?

like image 996
MCKapur Avatar asked Nov 19 '25 01:11

MCKapur


1 Answers

Set scrollbar's bounce property false/no. It will not bounce after that.

self.scrollView.bounces = NO;

like image 182
iOS Avatar answered Nov 20 '25 18:11

iOS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!