Titanium Community Questions & Answer Archive

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

NavBar showing up for split second

I am having trouble getting the nav bar to hide correctly in some of my windows. I thought the code below would work, but the light blue nav bar keeps showing up for a split second onload before disappearing. Any suggestions?


var win = Titanium.UI.currentWindow;
win.hideNavBar();
— asked July 22nd 2010 by Sean DeChellis
  • hidenavbar
  • iphone
  • navbar
0 Comments

3 Answers

  • I used this code right after creating the window with Titanium.UI.createWindow and the navbar is never seen.

    win.hideNavBar({animated:false});
    

    The animated:false part makes sure it hides without the slide up animation, but I guess it's best to use that command before you open the window, as Daniel said.

    — answered July 23rd 2010 by Marcel Neumann
    permalink
    0 Comments
  • Sean, try hide it before you open that window.

    — answered July 22nd 2010 by Daniel Lim
    permalink
    0 Comments
  • if you don't mind, what would the code look like?

    I'm guessing it would have to do with the eventlistener? Thanks for the help

    — answered July 22nd 2010 by Sean DeChellis
    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.