我正在使用name='viewport' content='width=device-width, shrink-to-fit=YES' initial-scale='1.0' maximum-scale='1.0' minimum-scale='1.0' user-scalable='no'代码进行WKWebView设置。
有没有可能增加WKWebView的高度?

发布于 2020-07-17 21:22:57
实际上,有一种方法可以增加WKWebView的大小
_yourwebview.frame = CGRectMake(0,0,200,400); 或者,当分配和初始化完成时,将其设置为适合的框架,这里的视图框架将webview放在其中。
self.webView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:conf];https://stackoverflow.com/questions/62953895
复制相似问题