I need to load a local file in a WKWebView. I\'m using the new ios9 method
- (nullable WKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)re
I also encountered this problem. What worked for me is to simply to refresh the UIView container holding the webView:
[webView loadFileURL:url allowingReadAccessToURL:[url URLByDeletingLastPathComponent]]; [webViewContainer setNeedsDisplay]; [webViewContainer setNeedsLayout];
Hope this helps.