Disable scrolling in UIWebView

In my iPad app, I play in PDF and video in UIWebView. I need to scroll through the pdf to read further pages. But at the same time, the videos also scroll, and I want to disable them. I play all of these files in one web view. I can write a condition to disable video scrolling and enable it in PDF format. But I have no idea what to write in this state. Can someone help me disable UIWebView scrolling.

thanks

PC

+4
source share
2 answers
webView.userInteractionEnabled = NO; 

Note that this technique disables touch and interaction in the web view.

+2
source

You can disable scrolling of the entire UIWebView with:

 webview.scrollView.scrollEnabled = NO; 

As far as I know, it is impossible to disable scrolling for only one section of the UIWebView.

+6
source

All Articles