how to hide html elements in wkwebview in IOS?
问题 i want to hide certain html elements in wkwebview using swift 4, xcode 9. i know how to do it in android and have added the code below. i just need an equivalent code for ios in swift 4 for wkwebView. myWebView.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebView view, String url) { myWebView.loadUrl("javascript:(function() { " + "document.getElementById('divHeader') [0].style.display='none'; " + "})()"); } }); myWebView.loadUrl(URL); 回答1: Use WKWebView import