-
-
Save troscoe/6499602 to your computer and use it in GitHub Desktop.
This file contains 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
// For iOS7 only, set the window's top to 20 so they start under the status bar. | |
Alloy.Globals.windowTop = (OS_IOS && parseInt(Ti.Platform.version[0], 10) >= 7) ? 20 : 0; | |
// Optionally set the backgroundColor or backgroundImage to show behind the statusbar. | |
// Please note that the backgroundImage will cover the full screen, but only top 20px is visible. | |
// Ti.UI.backgroundColor = '#555'; | |
// Ti.UI.backgroundImage = 'statusBar_bg.png'; |
This file contains 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
"Window[platform=ios]": { | |
top: Alloy.Globals.windowTop, | |
// The only place in 3.1.3 where you can set the statusBarStyle. | |
// Leave out or set to DEFAULT for black instead of white text. | |
statusBarStyle: Titanium.UI.iPhone.StatusBar.TRANSLUCENT_BLACK | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment