Titanium Community Questions & Answer Archive

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

Minor iPhone issues - images, navbuttons

I have some detection to determine whether or not I'm using android or iphone, and it works fine.

One minor problem is that my images arent being copied when I compiled. They are in the appdir/images folder, and my code is looking for them via /images/imagename.jpg (also tried without the first /, and using a ./). Works fine on android, nothing in iphone.

Second is nav buttons. My issue is that I would like the rightnav to load a .js, the same as a tab click. Here is the code. Basically, if its an iPhone I want it to use nav buttons, if its android I want it to use tabs (which it does fine).


    var mylocations = Titanium.UI.createButton({
    title:'My Locations',

    }); //end button

            }); //end click


        } //end os detection
//android os
//  add tabs


win2 is defined elsewhere in my code that works fine with the tabs.

Also, when the app loads, the button fades in, instead of just being there.

On my second page I have the same issue, except its the Back button. I want to go back to the main app.js screen but it doesnt do anything.

I put alerts in them to make sure they were being fired, and they were.

— asked October 23rd 2010 by Josh Lewis
  • button
  • iphone
  • nav

1 Answer

  • Never mind I fixed it.

    — answered October 24th 2010 by Josh Lewis
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.