Question: Does anyone know how to stop a UIWebView from bouncing vertically? I mean when a user touches their iphone screen, drags their finger downwards, and the webview shows a blank spot above the web page I had loaded?

I've looked at the following possible solutions, but none of them worked for me:

<http://www.iphonedevsdk.com/forum/iphone-sdk-development/996-turn-off-scrolling-bounces-uiwebview.html>

<http://forums.macrumors.com/showthread.php?t=619534>

[How do I stop a UIScrollView from bouncing horizontally?](https://stackoverflow.com/questions/173786/how-do-i-stop-a-uiscrollview-from-bouncing-horizontally)

Answer: 
In the iOS 5 SDK you can access the scroll view associated with a web view directly rather than iterating through its subviews.

So to disable 'bouncing' in the scroll view you can use:

```
myWebView.scrollView.bounces = NO;

```

See the [UIWebView Class Reference](http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006950-CH3-SW35).

(However if you need to support versions of the SDK before 5.0, you should follow [Mirek Rusin's advice](https://stackoverflow.com/a/3324886/387310).)
In Swift to disable bounces

```
webViewObj.scrollView.bounces = false

```