Skip to content

Instantly share code, notes, and snippets.

@FokkeZB
Last active August 13, 2016 17:28
Show Gist options
  • Save FokkeZB/6476027 to your computer and use it in GitHub Desktop.
Save FokkeZB/6476027 to your computer and use it in GitHub Desktop.
Quick #TiAlloy fix for windows being positioned under the status bar on #iOS7
// 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