The images in the app are displaying fine in the simulator, but not on the device.
Any suggestions??
1 Answer
Accepted Answer
My advice is to always use absolute paths to everything in Titanium, whether you are referring to a javascript file or an image file. This will help prevent cross-platform issues.
If your image file is in Resources/images/foo.jpg, refer to it as "/images/foo.jpg" within your code. If you need an iphone-specific override, put it in Resources/iphone/images/foo.jpg. You will still reference it as "/images/foo.jpg" in your code.
Your Answer
Think you can help? Login to answer this question!