Skip to content

Instantly share code, notes, and snippets.

@minhnc
Created February 14, 2012 09:12
Show Gist options
  • Save minhnc/1825015 to your computer and use it in GitHub Desktop.
Save minhnc/1825015 to your computer and use it in GitHub Desktop.
app.js
var w1 = Ti.UI.createWindow({url:'win1.js', backgroundColor:'white'});
var w2 = Ti.UI.createWindow({url:'win2.js', backgroundColor:'white'});
var t1 = Ti.UI.createTab({window:w1, title: 'Tab1'});
var t2 = Ti.UI.createTab({window:w2, title: 'Tab2'});
var tg = Ti.UI.createTabGroup();
tg.addTab(t1);
tg.addTab(t2);
tg.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment