How to lock screen orientation only in one window of NavigationGroup

You must Login before you can answer or comment on any questions.

Hi,

Is there any way to lock the screen only in one window when we use NavigationGroup? For example First.js and Second.js

In Second.js 's Window, I set like this win.orientationModes = [Ti.UI.PORTRAIT]; But still in that window all orientationModes working fine.

I tried to open Second Window with modal:true instead of NavigationGroup.open , But no use :(

1 Answer

win.orientationModes = [Ti.UI.PORTRAIT]; it should work.

orientationModes must be set before opening the window.

— answered 8 months ago by Jyoti Gupta
answer permalink
2 Comments
  • it should work, i did not check it currently but earlier in one or two project i used and worked for me as well.

    — commented 8 months ago by Ashish Nigam

  • For me this one also work Titanium.UI.orientation = Titanium.UI.PORTRAIT;

    — commented 8 months ago by Naga Harish Movva

Your Answer

Think you can help? Login to answer this question!