I can not get to a solution after much googling. I have a UIWebView with a PDF in it.
I do not want the view: "Page 1 of 20" The small view in the upper left corner when viewing a PDF file. It is possible to remove this?
I can not get to a solution after much googling. I have a UIWebView with a PDF in it.
I do not want the view: "Page 1 of 20" The small view in the upper left corner when viewing a PDF file. It is possible to remove this?
I found a solution to your question... You can Hide the "Page 1 of 20" using following code :
Hope this may be helpful to some one... Thanks...
This code is working on iOS9, 10 (tested)
Implement
webView.scrollView.delegate
and run above code inscrollViewDidScroll
Hope this help.
iOS 11 / Swift 4:
Swift 3 and
WKWebView
I get all the subviews of the
WKWebView
and then removeWKPDFPageNumberIndicator
:You'll probably have to set
webView.navigationDelegate = self
UPDATE (not tested) - Swift 4
Keep the
getSubviewsOfView
function from above and modify the webView function like this: