Status Bar ios7 in Titanium :
TiAlloy fix for windows being positioned under the status bar on #iOS7 :
alloy.js
//For iOS only, set the Windows top to 20 so they start under the status bar.
Alloy.Globals.windowsTop = (OS_IOS && parseInt(Ti.Platform.version[0], 10) >= 7 ) ? 20 : 0;
app.tss
//Set Window Propert for iOS
"Window[platform=ios]" : {
top : Alloy.Globals.windowsTop
}
iOS 7 also introduces a new light content status bar style that is exposed as the Titanium.UI.iPhone.StatusBar.LIGHT_CONTENT constant in the Titanium SDK. Use this constant to specify a status bar for use with a dark background. If you want the entire application to use this style, add the following key to your tiapp.xml file:
tiapp.xml
<ti:app>
<ios>
<plist>
<dict>
<key>
UIStatusBarStyle
</key> <string>
UIStatusBarStyleLightContent
</string></dict>
</plist>
</ios>
</ti:app>
norstl Geographic area titanium Industries offers Shaanxi North Steel Co.
ReplyDelete