Images not showing on device (iphone)
Ok so i have managed to get the app installed on my phone and it loads using
-Titanium SDK 1.3.2
- iPhone SDK 4.0
Though i have encountered a new problem, My images are not appearing when i use Titanium.UI.createImageView. They show up on my simulator… but on device they don't show.
Anyone able to help?
4 Answers
-
Do you use the url: property or the new image: property when running your app? You should use the image: property to set the path to the image.
-
sorry double Post
-
i have the same problem here the code. In my opinion this should work. because in the emulator it works perfect !
// Insert GURU MEDITATION HISTORY button and listener
var historyButton = Titanium.UI.createButton({
title: 'Guru Meditation History',
image:'../images/Button_History.png',
width:320,
height:45,
top:21
});
historyButton.addEventListener('click',function(e)
{ -
You can't have subdirectories like "images", "sounds" and so on in the "Resources" directory! put all into the same directory (Resources) and your images and sounds will be packed onto the iPhone ! My problem is solved now !!