Xcode8 ios10 - Webviewer无法加载URL?

时间:2016-09-17 04:59:26

标签: xcode ios10

我正在尝试使用Xcode 8在iOS 10中创建一个Webviewer。它不会加载我想要查看的URL;如果我改变了

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var Webview: UIWebView!

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        let url = NSURL(string: "htpps://shoalshousehunter.com")
        let request = NSURLRequest(url: url! as URL)

        Webview.loadRequest(request as URLRequest)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}

0 个答案:

没有答案