Ok I have come across an error and im puzzled as I can not see where im going wrong. Please help
CustomData[i].flagbecause i have used image views with paths to local files and remote urls. i.e. '/images/flag.png'
If the first code snippet works on the simulator and dies in the device, your file URL is probably missing some capital letters - on the Mac, file names are not case sensitive, but on the real device they are.
In the second case, the
imageparameter is expecting to be passed an actual image in the form of a file or a blob - the file path should be passed in the
Ok, I having played about with the code which i know should work (using the property IMAGE:OBJ) i turned my attention to the SDKs.
I was previously using Titanium Mobile SDK 1.3.2 & iPhone SDK 4.0. After changing the iPhone SDK version to 3.1 all images work on the device as they do on the simulator.
There must be some sort of bug in the iOS4.0 SDK version that doesn't like the property. Thanks all for your help and comments.