Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Friday, August 19, 2016

Can I disable rubber band inertial scrolling in UIScrollView

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?

Answer by E. Lüders for Can I disable rubber band inertial scrolling in UIScrollView


Use this:

self.scrollView.bounces = NO;  

Answer by karlofk for Can I disable rubber band inertial scrolling in UIScrollView


self.yourScrollView.bounces = NO;  

Answer by Thermometer for Can I disable rubber band inertial scrolling in UIScrollView


class="descans">

Yeah. In interface-builder or Storyboards, just select the UIScrollView and un-check the 'bounces' property.

In code:

self.scrollView.bounces = NO;  

Answer by Nitish for Can I disable rubber band inertial scrolling in UIScrollView


Check for UIScrollView bounces property. It is like on/off property for such behaviour.

Answer by iOS for Can I disable rubber band inertial scrolling in UIScrollView


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

self.scrollView.bounces = NO;


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

Related Posts:

0 comments:

Post a Comment

Popular Posts

Fun Page

Powered by Blogger.