What this code will do is automatically rotate screen via iOS built in Orientation.
This is better than using Stage:setOrientation(orientation) because Stage:setOrientation(orientation) doesn't
rotate the Multi-taskbar, native popups, dialogs like the game center popup.
This is why I like to build my project on a local computer rather than a server like Corona. You have a lot more control.
O.K, add the code below to your AppNameViewController.mm. You will find the AppNameViewController.mm after
you export you project, it's in the Classes folder.
NOTE: AppNameViewController.mm will have a different name at the beginning. Just look for *******ViewController.mm
I added the code to the very bottom of the AppNameViewController.mm file, before the @end
I only tested on the iPad. It supports all orientations, you can set it to support whatever orientation you want.
After adding code to file, then save and build your project with Xcode.
This is for Landscape, change settings to use portrait mode.
NOTE: set these files to read only or you will have to keep replacing when rebuilding.
Add this code to Info.plist.
// return YES; to support all orientations. return NO; for no orientation.
// this is for portrait mode only
// return UIInterfaceOrientationIsPortrait(interfaceOrientation);
// this is for landscape mode only