【发布时间】:2019-02-22 11:10:01
【问题描述】:
我想删除侧面的灰色条,但我不知道该怎么做。 我尝试了许多解决方案,例如:
self.webView.frame = self.view.bounds
self.webView.scalesPageToFit = true
webView = UIWebView(frame: CGRect(x: 0, y: 0, width: self.view.frame.width, height: self.view.frame.height))
但没有任何效果...
【问题讨论】:
-
试试这个:webView.contentMode = .aspectFill
-
你能添加你的 webview http URL
标签: ios webview view uiwebview cgrect