Skip to content

Instantly share code, notes, and snippets.

@minhnc
Created March 13, 2012 22:41
Show Gist options
  • Save minhnc/2032301 to your computer and use it in GitHub Desktop.
Save minhnc/2032301 to your computer and use it in GitHub Desktop.
Hide leftNavButton - back button
var tg = Ti.UI.createTabGroup();
var btn = Ti.UI.createButton({height: 40, title: 'Open new Window'});
var w1 = Ti.UI.createWindow({backgroundColor: 'white'});
w1.add(btn);
var t1 = Ti.UI.createTab({title: 'Tab', window: w1});
tg.addTab(t1);
tg.open();
btn.addEventListener('click', function(){
var w = Ti.UI.createWindow({backgroundColor: 'red'});
w.leftNavButton = Ti.UI.createView();// This will do the trick :)
t1.open(w);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment