Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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 :-)

— asked July 6th 2010 by Hansjuerg Wuethrich
  • images
  • iphone
  • macosx
  • mobile
0 Comments

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.

    — answered July 6th 2010 by Kevin Whinnery
    permalink
    0 Comments
  • 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 :-)

    — answered July 6th 2010 by Hansjuerg Wuethrich
    permalink
    0 Comments
  • Ohh no not again double post :-( sorry !

    — answered July 6th 2010 by Hansjuerg Wuethrich
    permalink
    0 Comments
  • 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 !

    — answered July 6th 2010 by Hansjuerg Wuethrich
    permalink
    1 Comment
    • I have a images folder under resources and works fine for me.

      — commented July 6th 2010 by Sj Singh
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.