Device Orientation

Monkey Targets Forums/iOS/Device Orientation

APC(Posted 2013) [#1]
How do I Set and Get the Device orientation?


AdamRedwoods(Posted 2013) [#2]
i don't think there are specific commands for this.
one way to detect change is to check for DeviceWidth() and DeviceHeight(). you can compare them to detect landscape or portrait.

I think most people deal with orientation change using the AutoFit/virtual resolution module.


Pengwin(Posted 2013) [#3]
As I finish my build process in xCode, I set the orientation there. Not the most efficient way, but while I'm changing the icon, etc, a couple of extra clicks isn't too much to worry about.