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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With