Device Orientation
Monkey Targets Forums/iOS/Device Orientation
| ||
How do I Set and Get the Device orientation? |
| ||
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. |
| ||
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. |