Page 1 of 1

Enabling landscape only iPad app to rotate orientations

Posted: Fri Aug 10, 2012 5:31 pm
by w.wartersGA0dc3
Hi folks. I'm pleased to have developed and just released my first iPad app using Livecode. It is a resource for educators interested in teaching conflict resolution-related topics. You can get it free here: http://snipurl.com/crecalapp

Due to my design choices, the app really needs the width of landscape mode to present my content. However, initial users have noted that some of them hold their iPad in "landscape left" rather than my default "landscape right" and they were surprised when they had to flip the other way rather than just having the app adapt to their habits.

So...my question. How might I go about enabling a smooth rotation between landscape modes without enabling portrait view as a workable mode? I thought it might be as easy as just making both landscape orientations enabled, but I think there must be more to it than that because I can't seem to easy rotate through the unworkable portrait mode.

Any advice would be appreciated.

Re: Enabling landscape only iPad app to rotate orientations

Posted: Fri Aug 10, 2012 5:47 pm
by jacque
It's that easy, just enable both landscape modes. You may have fallen into the trap where you've put a space after the comma in the orientations list. That fails. No spaces allowed.

Re: Enabling landscape only iPad app to rotate orientations

Posted: Fri Aug 10, 2012 8:38 pm
by Randy Hengst
If you set the orientations in the Applications Setting Pane, you are only setting the initial orientation. So, check both of the landscape orientations.

Then in the stack script include this....
on startUp
iphoneSetAllowedOrientations "landscape left,landscape right"
end startUp

Note as Jacque mentioned... no space after the comma.

btw, I'm surprised your app wasn’t rejected. Maybe Apple has changed (I haven't checked lately) but, I had an iPad app rejected specifically because it only worked in one orientation. They’ve allowed one orientation in my early iPod apps, but never on iPad.

be well,
randy

Re: Enabling landscape only iPad app to rotate orientations

Posted: Fri Aug 10, 2012 11:18 pm
by w.wartersGA0dc3
Thanks folks. That did the trick for me.