Titanium hide status bar
I'm doing an application for Android and IOS in Titanium. The problem is
that when I load the app the status bar is shown, whereas if I rotate the
simulator (ipad simulator with ios 7) to landscape the status bar has been
hidden.
How can I hide the status bar since the beginning? or show it always?
I'm using sdk 3.1.2, because, with 3.1.3 some rotation things I have in
the application doesn't work. I want to lock a view to allow only to
rotate in portrait mode and the rest of the views to allow to rotate to
all orientations.
I do it:
I put for the first view:
Titanium.UI.orientation = Titanium.UI.PORTRAIT;
appWindow.orientationModes = [Titanium.UI.PORTRAIT];
and then, when I load other view, I put:
appWindow.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT,
Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];
Maybe is there any other way to do this?
Thank you very much
No comments:
Post a Comment