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:
…seems to work fine.
It’ll be accepted to App Store as well.
Update: in iOS 5.x+ there’s an easier way –
UIWebViewhasscrollViewproperty, so your code can look like this:Same goes for
WKWebView.