Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable scrolling in UIWebView

In my iPad app, I am playing some PDF and Videos on UIWebView. I need to scroll pdf to read further pages. But at the same time the videos are also scrollable, which I want to disable. I am playing all these files on a single web view. I can write a condition to disable scrolling on a video and enable on a PDF. But I have no idea what to write inside the condition. Can anyone help me disabling scrolling of UIWebView.

Thanks

PC

like image 862
Prateek Chaubey Avatar asked Feb 20 '23 19:02

Prateek Chaubey


1 Answers

You can disable scrolling of an entire UIWebView by:

webview.scrollView.scrollEnabled = NO;

As far as I know, it is not possible to disable scrolling for just one section of a UIWebView.

like image 140
Nosrettap Avatar answered Feb 22 '23 23:02

Nosrettap