您好,我对Webkit进行了简单的编码,但是我尝试过的所有链接都没有出现。我还有其他设置吗?谢谢!
import UIKit
import WebKit
class ViewController: UIViewController {
@IBOutlet weak var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url:URL = URL(string: "https://www.google.com")!
let urlRequest:URLRequest = URLRequest(url: url)
webView.load(urlRequest)
}
}