splitwindow force orientation
I'm trying to force a "landscape only" on an splitview( ipad ).
The docs says that the splitwindow inherits its methods and properties from Titanium.UI.Window but it seems "orientations" are not working.
If I do this with a normal window it works - turning the ipad in portrait, the app remains landscape.
orientationModes:[ Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT ],
detailView:nav,
masterView:masterView
I also edited the info.plist as said in bug #570.
Thanks for any idea you might have :)
1 Answer
-
Its an issue of which object do you set this properties to.
Set it to the splitView object and it worked for me, like this:SplitViewNav.splitView = Titanium.UI.iPad.createSplitWindow({
masterView:SplitViewNav.masterNav,
detailView:SplitViewNav.detailNav,
orientationModes:[ Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT ]
});