嘿:)我是新手,我想创建一个WebView App。如果我将URL设置为https://www.apple.com,则可以正常使用。但是,如果我将UR1更改为https://www.berkearas.de,它将不再起作用。该网站仍在运行并且在线,我也有SSL证书。我能做什么?谢谢大家:)
import WebKit
class ViewController: UIViewController, WKUIDelegate {
var webView: WKWebView!
override func loadView() {
let webConfiguration = WKWebViewConfiguration()
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let myURL = URL(string:"https://www.berkearas.de")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}}