我正在尝试使用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.
}
}