iOS Question Problem with webview

mrossen

Active Member
Licensed User
Longtime User
When I try to do this :

B4X:
Log(sPath)
Log(File.Exists(File.DirDocuments & pdfDir, sPath))
WebViewLeaflet.LoadUrl("file://" & File.Combine(File.DirDocuments & pdfDir, sPath))
NavControl.ShowPage(leaflet)

I can get the the path to the file and file.exits return true, but I get this error

*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]

Anyone knows what that Means?

Mogens
 
Top