Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off the bounce in UIWebView [duplicate]

Possible Duplicate:
Stop UIWebView from “bouncing” vertically?

can you just help me turning off the bounce in the UIWebView. Because when we over scroll it it displays the unnecessary space with the grayish back ground. Thanks in advance.

like image 849
PrithviRaj Avatar asked Dec 09 '22 16:12

PrithviRaj


1 Answers

You can try this:

for (id subview in YourWebView.subviews){
    if ([[subview class] isSubclassOfClass: [UIScrollView class]])
        ((UIScrollView *)subview).bounces = NO;
}
like image 141
nico Avatar answered Jan 29 '23 23:01

nico