Ios 在webView中加载网站时出现Swift错误

Ios 在webView中加载网站时出现Swift错误,ios,webview,uiwebview,wkwebview,Ios,Webview,Uiwebview,Wkwebview,这是我得到的错误 获取断言时出错: 在我的webView中有一个segmentedController,有三个选项: //MARK: segControlAction @objc func segControlAction(sender: UISegmentedControl) { switch sender.selectedSegmentIndex { case 0: // google let myURL = URL(string: "htt

这是我得到的
错误

获取断言时出错:

在我的
webView
中有一个
segmentedController
,有三个选项:

    //MARK: segControlAction
@objc func segControlAction(sender: UISegmentedControl) {
    switch sender.selectedSegmentIndex {
    case 0: // google
        let myURL = URL(string: "https://www.google.com")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
        
    case 1: // amazon
        let myURL = URL(string: "https://www.amazon.com")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
        
    case 2: // adidas
        let myURL = URL(string: "https://www.adidas.com")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
    
    default:
        let myURL = URL(string: "https://www.google.com")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
    }
}

谷歌和亚马逊运作良好,但案例2https://www.adidas.com)没有加载…我在这里遗漏了什么???

你解决了吗?@martine-jacob-Nope。将其更改为“de”哪个有效?您解决了吗?@MartinJacob no。将其更改为“de”哪个有效