Titanium Community Questions & Answer Archive

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

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?

— asked June 29th 2010 by Chris Johnson
  • development
  • device
  • error
  • images
  • iphone
0 Comments

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.

    — answered June 29th 2010 by Andreas Kviby
    permalink
    1 Comment
    • at present im using the URL property… what properties does the image: object take?

      — commented June 29th 2010 by Chris Johnson
  • sorry double Post

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

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

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