vendredi 5 janvier 2018

Unable to load link in webview

    @IBOutlet weak var webvw: WKWebView!

override func viewDidLoad() {
    super.viewDidLoad()

    let url = URL(string: "http://www.example.com")
    let request = URLRequest(url: url!)

    webvw.load(request)

Edit: (Replace example with profittneshc) The website will not open in a mac or iOS app... I'm not sure why!

Aucun commentaire:

Enregistrer un commentaire