2016-07-11 12 views

Antwort

1

Als Abhilfe können Sie nur die absolute Zeichenfolge der URL zu einem neuen NSURL passieren kann.

var theURL = NSURL(fileURLWithPath: "www/index.html", relativeToURL: folder) 
// create a new NSURL 
theURL = NSURL(string: theURL.absoluteString)! 
webView.loadFileURL(theURL, allowingReadAccessToURL: theURL) 
+0

nein, Sie tun falsch.use urlWithString. fileURLWithPath durchsucht die URL im Dateisystem. –

Verwandte Themen