How to disable bounce in UIWebView

Possible duplicate:
Stop UIWebView with "bouncing" vertically?

You can just help me disable the bounce in UIWebView. Because when we scroll it, it displays unnecessary space with a grayish back layer. Thanks in advance.

+4
source share
1 answer

You can try the following:

for (id subview in YourWebView.subviews){ if ([[subview class] isSubclassOfClass: [UIScrollView class]]) ((UIScrollView *)subview).bounces = NO; } 
+14
source

Source: https://habr.com/ru/post/1305729/


All Articles