ios webview load from local files

Open the files tab in your IDE, select "Add Files", and choose your html file.

Code: Copy
Dim WebView1 as WebView

WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename"))
 
Upvote 0
Open the files tab in your IDE, select tnx"Add Files", and choose your html file.

Code: Copy
Dim WebView1 as WebView

WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename"))
tnx

i load...
but images and css files dont work and dont show .

I copied the css files and images
 
Upvote 0
If I am right, you should also change the images and css file paths to "file://.......". :p

Is there any experts can help?
 
Upvote 0
Back
Top