Skip to content

Instantly share code, notes, and snippets.

@jonalter
Created March 16, 2011 16:39
Show Gist options
  • Save jonalter/872785 to your computer and use it in GitHub Desktop.
Save jonalter/872785 to your computer and use it in GitHub Desktop.
NavigationGroup Example
var win = Titanium.UI.createWindow();
var win1 = Titanium.UI.createWindow({
backgroundColor:"red",
title:"Red Window"
});
var nav = Titanium.UI.iPhone.createNavigationGroup({
window: win1
});
var button = Ti.UI.createButton({
title: 'open window',
height: 40,
width: 250
});
var win2 = Titanium.UI.createWindow({
backgroundColor:"blue",
title:"Blue Window"
});
button.addEventListener('click', function(e){
nav.open(win2);
});
win1.add(button);
win.add(nav);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment