I'm trying to get iOS to display an RTF file. I test in the Livecode environment and it all works fine. When in the simulator however it doesn't show up. Heres the code:
Code: Select all
put "270" into gPlotNo -- Just so you can see the kind of data i'm pushing around
-- set up the global Data path for each environment
if environment() is "mobile" then put SpecialFolderPath ("engine") & "/Data" into gDataPath
else put SpecialFolderPath ("Documents") & "/PlotFinder/Data" into gDataPath
-- display the text
set the RTFText of field "testField" to URL ("file:" & gDataPath & "/images/" & gPlotNo & "/" & gPlotNo & "_Details.rtf")
Cheers
Pi