# UIWebView bounce in IOS

**URL:** <https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131>\
**Category:** ionic-v1\
**Created:** [December 3, 2013, 3:19pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131 "2013-12-03T15:19:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@andrea](https://forum.ionicframework.com/u/andrea)\
**Post date:** [December 3, 2013, 3:19pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/1 "2013-12-03T15:19:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [December 4, 2013, 2:53pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/2 "2013-12-04T14:53:38Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@andrea](https://forum.ionicframework.com/u/andrea)\
**Post date:** [December 4, 2013, 3:33pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/3 "2013-12-04T15:33:59Z")

</div>

I download the last version from [phonegap.com](http://phonegap.com)

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [December 4, 2013, 5:35pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/4 "2013-12-04T17:35:47Z")

</div>

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" />
```

---

<div class="post-metadata">

**Author:** ![andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@andrea](https://forum.ionicframework.com/u/andrea)\
**Post date:** [December 5, 2013, 7:57am UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/5 "2013-12-05T07:57:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [December 5, 2013, 11:37pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/6 "2013-12-05T23:37:07Z")

</div>

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? 🙂

---

<div class="post-metadata">

**Author:** ![SubEffect](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/subeffect/32/65247_2.png) [@SubEffect](https://forum.ionicframework.com/u/SubEffect)\
**Post date:** [February 8, 2015, 4:39pm UTC](https://forum.ionicframework.com/t/uiwebview-bounce-in-ios/131/7 "2015-02-08T16:39:36Z")

</div>

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