No images on real iPhone. Emulator works perfect
Good day developers !
i developed an application with some images (ex: Buttons and so on). In the iPhone Emulator it works more than perfect for me (Yeahh). so i registered yesterday at apple as a developer. Today i have the possibilitie to run the code on my real iphone. The app works also on iphone, but without images. when i was looking with "iFile" into my app-directory, i saw, the images are NOT there ! they should be in the directory ../images/name.png
any suggestions ?
Thank you !
Sorry for my english, i hope you understand me :-)
4 Answers
-
I would confirm the paths you use to reference the images - on Mac OS (and by extension the emulator) file names are case-insensitive, but on the device file names must be correct.
-
Thank you for the information but the references to the images are correct .
may i post a sample code please ?
// 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)
{btw: It is an Application about the "Guru Meditation" error message from the good old Commodore Amiga Computer :-)
-
Ohh no not again double post :-( sorry !
-
Ohh i think, i found the solution !!!!
you can't have a subdirectory in the directory "Resources" in example "Resources/images", this won't work on the real iPhone but works great in Emulator !
if you put the images in the pure "Resources" directory, this works good in the EMulator and also on the real iPhone !