Titanium Community Questions & Answer Archive

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

iPhone app with no tabs, but with titlebars

I'm probably misunderstanding a basic concept here, but it seems all examples have an app.js that set up a tabgroup in order to have titles.

What I'm trying to do is set up an app with a titlebar, but I don't need tabs. However, without creating a tab group I can't seem to have titles on my windows.

Is this right, or am I missing something?

— asked November 11th 2010 by Andy Smith
  • iphone
  • mobile
  • tabs
  • title
  • windows
0 Comments

3 Answers

  • No need for that, just create a window and you are off

    
    Titanium.UI.setBackgroundColor('#000');
    
    var window = Titanium.UI.createWindow({    title:'Window No Tab Bar' });
    window.open({
    
        modal:true,
        modalTransitionStyle: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL,
        modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET
    });
    
    — answered November 11th 2010 by Aaron Saunders
    permalink
    1 Comment
    • But why should he open the window as a modal? In my experience modals don't support opening subwindows, which means he will have to contain the whole app in one window.

      — commented November 11th 2010 by Adam Renklint
  • You need to hide the tabGroup on the window, before opening the it, using myWin.hideTabBar();

    — answered November 11th 2010 by Adam Renklint
    permalink
    1 Comment
    • Cool, yeah. I had that as a workaround, but just wondered if I was doing it wrong and there was a way to show titles without tabgroups.

      — commented November 11th 2010 by Andy Smith
  • Hi… but… If you try this… in Android not works… Android ever show the tab :S
    exists solution for both platforms ?

    — answered April 20th 2011 by Javier R.
    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.