UIWebView bounce in IOS

I saw that you have set preference “webviewbounce” and “UIWebViewBounce” to prevent the bouncing of the uiwebview but this solution doesn’t works for me.
I added in webViewDidFinishLoad the following line of code and now uiwebview stop bouncing.

[[theWebView.subviews objectAtIndex:0] setBounces:NO];

What do you think about?

Strange, it should work. It works on all of our tests…

Which version of Cordova are you using? Maybe something changed recently.

I download the last version from phonegap.com

Ah, looks like this changed recently. Put these in your config.xml:

<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />

@max it’s works now I removed the change I had done in webViewDidFinishLoad.

Great! I’ve been chatting with a cordova dev and he’s bringing this up on their dev lists. It’s kind of annoying, huh? :slight_smile:

Just to say - this doesn’t work in Ionic View - the bounce is still there. I haven’t gapped this app yet so…