uiwebview disables scrolling

advertisements

I was wondering if someone could assist me in how to disable the scrolling function on UIWebView on Xcode.

I'll try explain my issue as best as possible.

I'm trying to disable the scrolling function so that the user cannot scroll up or down on the webview. Is there a way to somehow block the scrolling function?

If you need more information please let me know.

Many thanks.


To disable scroll view in UIWebview,Wirte this inside ur viewDidLoad

webView.scrollView.scrollEnabled = NO;
webView.scrollView.bounces = NO;

also

webview.scalesPageToFit = TRUE;