swift - WKWebview, local files -


i have folder html file points js file, in folder, bunch of images. things work fine uiwebview, apparently wkwebview new thing , recommended. doesn't read data.

    var mywebview = wkwebview(frame: cgrect(x:0, y:0, width: view.frame.width, height: view.frame.height))      let filepath = bundle.main.path(forresource: "folder/file", oftype: "html")      let folderpath = bundle.main.path(forauxiliaryexecutable: "folder")      let fileurl = nsurl(fileurlwithpath: filepath!)     let baseurl = nsurl(fileurlwithpath: folderpath!, isdirectory: true)       mywebview.loadfileurl(fileurl url, allowingreadaccessto: baseurl url) 

no errors. opens white screen. suggestions on how make read js file , show images?

thanks!


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -