RTF file displayed into iOS
Posted: Mon Dec 19, 2011 6:53 pm
Hi all,
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:
My images from the same folder load fine. If I change 'RTFText' to be just 'Text' then the unformatted text of the file is displayed just fine. If I use RTFText though it just comes back blank. Anyone else getting this?
Cheers
Pi
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