Created
July 28, 2011 16:25
-
-
Save jonalter/1111872 to your computer and use it in GitHub Desktop.
iOS: Activity indicator on the splash screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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