Skip to content

Instantly share code, notes, and snippets.

@botmaster
Forked from FokkeZB/alloy.js
Created October 16, 2013 09:06
Show Gist options
  • Save botmaster/7004870 to your computer and use it in GitHub Desktop.
Save botmaster/7004870 to your computer and use it in GitHub Desktop.
// 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;
"Window[platform=ios]": {
top: Alloy.Globals.windowTop
}
<ti:app>
<ios>
<plist>
<dict>
<key>UIStatusBarStyle</key>
<!-- Use the 'new' light style to get the iOS6-like white text -->
<string>UIStatusBarStyleLightContent</string>
</dict>
</plist>
</ios>
</ti:app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment