ios webview load from local files

Eumel

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

B4X:
Dim WebView1 as WebView

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

Ramezanpour

Active Member
Licensed User
Open the files tab in your IDE, select tnx"Add Files", and choose your html file.

B4X:
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
 

wineos

Member
Licensed User
If I am right, you should also change the images and css file paths to "file://.......". :p

Is there any experts can help?
 
Top