Enabling landscape only iPad app to rotate orientations

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
w.wartersGA0dc3
Posts: 11
Joined: Mon Dec 05, 2011 5:33 pm

Enabling landscape only iPad app to rotate orientations

Post by w.wartersGA0dc3 » Fri Aug 10, 2012 5:31 pm

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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Enabling landscape only iPad app to rotate orientations

Post by jacque » Fri Aug 10, 2012 5:47 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Re: Enabling landscape only iPad app to rotate orientations

Post by Randy Hengst » Fri Aug 10, 2012 8:38 pm

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

w.wartersGA0dc3
Posts: 11
Joined: Mon Dec 05, 2011 5:33 pm

Re: Enabling landscape only iPad app to rotate orientations

Post by w.wartersGA0dc3 » Fri Aug 10, 2012 11:18 pm

Thanks folks. That did the trick for me.

Post Reply