In Titanium 3.2.0 (iOS SDK 7.0.3), I'm having trouble properly setting setting the status bar style across various views.
The majority of the views use NavigationWindows and the light status bar style always shows up. However, I have one view without a NavigationWindow that I want a dark status bar style and I also want a light style on the splash screen.
So in app.tss
I have put the following:
'Window': { barColor: '#0078BE', statusBarStyle: Ti.UI.iPhone.StatusBar.LIGHT_CONTENT, titleAttributes: { color: '#fff' } }, 'NavigationWindow': { statusBarStyle: Ti.UI.iPhone.StatusBar.LIGHT_CONTENT, tintColor: '#fff' }This correctly shows a white status bar on top of the NavigationWindows. I'm not sure whether it should be on Window or NavigationWindow, but trying it on each yielded no different results.
However, this produces a black status bar on the splash screen.
In the login.tss
, the view that doesn't have a NavigationWindow and which has a light background:
'Window': { backgroundColor: '#f8f8f8', statusBarStyle: Ti.UI.iPhone.StatusBar.TRANSLUCENT_BLACK }This, as well as OPAQUE_BLACK, produces a while status bar. Only DEFAULT produces a black status bar.
So at this point, it it showing a white status bar on the views with NavigationWindows and a black status bar on the view without a NavigationWindow. However, it also shows a black status bar on the splash screen, which has a dark background. I thought the styles in app.tss
would apply to the splash screen.