Skip to content

Instantly share code, notes, and snippets.

@LearningTitanium
Created April 23, 2012 20:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save LearningTitanium/2473568 to your computer and use it in GitHub Desktop.
FaceTouch
Titanium.App.ISIPAD = Ti.Platform.osname == 'ipad';
Ti.include('/programs/main.js');
var ff = {};
ff.app = {};
ff.ui = {};
// create tab group
ff.app.tabGroup = Titanium.UI.createTabGroup({
backgroundColor: '#000'
});
// create the main home screen (this function creates the home screen and is defined in main.js)
ff.app.mainwin = ff.ui.createMainWindow();
// create loading window "splash"
ff.app.loadWin = Ti.UI.createWindow({
top:0,left:0,right:0,bottom:0,
tabBarHidden: true,
navBarHidden: true,
backgroundImage: Titanium.App.ISIPAD ? 'images/background_splash_ipad.jpg' : 'images/background_splash.jpg' ,
fullscreen: true,
url: 'programs/splash.js',
tabGroup: ff.app.tabGroup, // pass the main tabgroup
mainTab: tabMain // pass the tab where main is
});
var tabLoad = Titanium.UI.createTab({
window:ff.app.loadWin
});
var tabMain = Titanium.UI.createTab({
window:ff.app.mainwin
});
ff.app.tabGroup.addTab(tabLoad);
ff.app.tabGroup.addTab(tabMain);
ff.app.tabGroup.setActiveTab(tabLoad);
ff.app.tabGroup.open();
@boardmain
Copy link

Hi the main.js is online?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment