【问题标题】:uiwebview swift 3 page is not scrollinguiwebview swift 3 页面不滚动
【发布时间】: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

【问题讨论】:

标签: ios swift xcode webview uiwebview


【解决方案1】:

我重写了您的代码,但一切正常。尝试重启 xcode

【讨论】:

  • 我已经多次重启xcode甚至创建了很多项目但没有成功。
  • 可能是我的 ide 有一些设置使其无法正常工作。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-11-11
  • 2012-07-07
  • 2011-01-10
  • 2011-04-30
相关资源
最近更新 更多