iOS Question Animated gif In webview.

TSW2017

Member
Licensed User
Hi ,

i'm just trying to show a gif inside a webview like B4A but it doesn't work.

Any tips?

I'm following the example of Urel but not succes.

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

I have the gif stored in App folder files.

thank you
 

BillMeyer

Well-Known Member
Licensed User
Longtime User
Try this:

B4X:
 Dim txt As String
    txt = "<html><head></head><body><img width=""100%"" height=""100%"" src=file:///"&File.Combine(File.DirAssets,"MyGif.gif")&"></body></html>"
    WebView1.LoadHtml(txt)
 
Upvote 0
Top