iOS Device orientation confusion!
HENRY LOWE
hlowe at me.com
Tue Apr 11 20:24:16 EDT 2023
Hi,
I am trying fix a new (I think) issue in a Livecode iOS app that had previously successfully handled UI updates based on changes in device orientation. I am using LC 9.6.9, Mac OS Ventura 13.3.1, iOS 16.4.1 and Xcode Simulator 14.2.
The problem is that when the iPhone is in Landscape Left mode (according to the simulator and to Apple’s definition of that mode - see below), Livecode is returning Landscape Right. When the device is in Landscape Right mode, Livecode returns Landscape Left - via the MobileDeviceOrientation function.
Apple’s Definition (developer.apple.com <http://developer.apple.com/>) of these two modes:
• LandscapeLeft:
The device is in landscape mode, with the device held upright and the front-facing camera on the left side.
• LandscapeRight:
The device is in landscape mode, with the device held upright and the front-facing camera on the right side.
Livecode’s Definition (Dictionary):
• landscape left: the device is being held upward with the home button on the left
• landscape right: the device is being held upward with the home button on the right
It would appear that these two definitions at odds with each other. Am I missing something?
Henry
More information about the use-livecode
mailing list