【发布时间】:2017-03-22 17:47:16
【问题描述】:
我用 swift 3 在 xcode 中制作了一个应用程序,但页面内容没有滚动。 这是代码
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let url = URL(string: "https://www.website.com");
let response = URLRequest(url: url!)
webView.loadRequest(response)
webView.scalesPageToFit = true
webView.isUserInteractionEnabled = true
webView.scrollView.isScrollEnabled = true
}
这里是设置截图https://www.dropbox.com/s/hckond368czbk0c/Screenshot%202017-03-22%2022.49.09.png?dl=0
【问题讨论】:
-
我已经检查了 url ("stackoverflow.com/questions/42959123/…)。它工作正常。
标签: ios swift xcode webview uiwebview