Splashscreen in landscape mode
I want my app to start in landscape mode. I don't want the splashscreen to be in portrait mode either. I want the splashscreen to start up in landscape mode.
Anyone?
2 Answers
-
Accepted Answer
This is how i did it in my app:
Set your orientation mode to landscape in your app.js :
var win = Titanium.UI.createWindow({ title:'Home', tabBarHidden:true }); win.orientationModes = [ Titanium.UI.LANDSCAPE_LEFT ]; Titanium.UI.orientation = Titanium.UI.LANDSCAPE_LEFT;
Create your splashscreen image in a landscape mode and voila
-
This line I forget… thanks a lot!
Titanium.UI.orientation = Titanium.UI.LANDSCAPE_LEFT;