Doing an app that has a lot of html files that get displayed. I tried dragging the folder that contains all the files but the icons for the files indicate they are shortcuts. However the graphic files seem to be in the project.
I just tried using the shortcut to display:
NewView.mtFile = "file://html/AboutASPE.html"
This didn’t work with file:// or file:///
This works using the complete path. I did this just to get things working.
For the DB, since it is likely read/write, you’ll want to put it in the Documents folder for the iOS app (using SpecialFolder).
You can create your SQLite DB and save it to Documents. Or you can supply it yourself and copy it to Resources using a Copy Files Build Step and then have your app copy it to Documents when it starts.
For the HTML files, copy them to the Resources folder using a Copy Files Build Step. You can then reference each file using FolderItem.URLPath to display into an iOSHTMLViewer. This example worked for me:
[code]
Dim f As FolderItem
// File copied to Resources by a Copy Files Build Step
f = SpecialFolder.GetResource(“MyHTMLFile.html”)
Your application can also have files added to and deleted from the DOCUMENTS folder via iTunes after deployment by simply adding one key to the Plist file
Dim f As FolderItem
// File copied to Resources by a Copy Files Build Step
f = SpecialFolder.GetResource("html/firstDirectory/MyHTMLFile.html")
HTMLViewer1.LoadURL(f.URLPath)
I guess there is nothing wrong with it, but years of habit with Xojo have taught me to reference files one part at a time to make it easier to check for errors.
No I mean a complete explanation including explaining the build step.
Like the Xojo docs have explanations and examples.
I know the iOS stuff is all new and it’s going to take a lot of time to get those docs up to the same quality as the rest. It could be a full time job just doing that.