CodePudding user response:
- (UIView *) viewForZoomingInScrollView: (scrollView UIScrollView *){
Return nil.
}
CodePudding user response:
- (void) webView: (WKWebView *) webView didFinishNavigation: (WKNavigation *) navigation {Nsstrings * injectionJSString=@ "var script=document. The createElement method (" meta");"
"Script. Name=" viewport ';"
"Script. The content=" width=device - width, user - scalable=no \ ";"
"Document. GetElementsByTagName (' head ') [0]. The appendChild (script); and";
[_webView evaluateJavaScript: injectionJSString completionHandler: nil];
NSLog (@ "loading finish");
}