Skip to content

Instantly share code, notes, and snippets.

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var web = Ti.UI.createWebView({
url:'http://jsdc.tw/'
});
win.add(web);
win.open();
var win = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var image = Ti.UI.createImageView({
image:'KS_nav_ui.png',
width:46,
heigth:43,
top:20,
left:20