Skip to content

Instantly share code, notes, and snippets.

@jonalter
Created July 28, 2011 16:25
Show Gist options
  • Select an option

  • Save jonalter/1111872 to your computer and use it in GitHub Desktop.

Select an option

Save jonalter/1111872 to your computer and use it in GitHub Desktop.
iOS: Activity indicator on the splash screen
var win = Ti.UI.createWindow({
backgroundColor: 'blue'
});
var actInd = Titanium.UI.createActivityIndicator({
bottom:100,
height:50,
width:10,
style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN,
font: {fontFamily:'Helvetica Neue', fontSize:15,fontWeight:'bold'},
color: 'white',
message: 'Loading...',
width: 210
});
var loadingWin = Ti.UI.createWindow({
backgroundImage: 'Default.png',
fullscreen: true
});
loadingWin.open();
loadingWin.add(actInd);
actInd.show();
setTimeout(function(){
win.open();
},4000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment