Ios uiwebview swift 3页面未滚动

Ios uiwebview swift 3页面未滚动,ios,swift,xcode,webview,uiwebview,Ios,Swift,Xcode,Webview,Uiwebview,我用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 = URL

我用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

}

这是设置屏幕截图

我重写了你的代码,但一切都很完美。尝试重新启动xcode


我检查了url(“)。它工作正常。我多次重新启动xcode,甚至创建了许多项目,但都没有成功。可能是我的ide有一些设置使它无法工作。