Page 1 of 1

iPhone X (simulator) no portrait upside down (LC 8.1.7 / Xcode 9.0.1)

Posted: Sun Nov 05, 2017 10:01 pm
by drkosta
Hi there,

today I started to optimise my app for iPhone X display. For iPhone (and iPhone Simulator) I use in the preopenstack handler some code for allowed orientations on iPad and iPhone (and simulators).

When testing the app on ipad simulator and any iPhone simulator the allowed orientations are displayed right when turning the device except the iPhone X simulator. Nothing changes here when turning the device.
Is there any new name in "the machine"? Any ideas how to solve?

Thanks in advance

Kosta

Code: Select all

on preOpenStack
   
   if the machine is "ipad" then
      put "portrait,portrait upside down,landscape left,landscape right" into theallowed
      mobileSetAllowedOrientations theallowed 
   else if the machine is "ipad simulator" then
      put "portrait,portrait upside down,landscape left,landscape right" into theallowed
      mobileSetAllowedOrientations theallowed 
   else if the machine is "iphone" then
      put "portrait,portrait upside down" into theallowed
      mobileSetAllowedOrientations theallowed 
   else if the machine is "iphone simulator" then
      put "portrait,portrait upside down" into theallowed
      mobileSetAllowedOrientations theallowed 
   end if
   
end preOpenStack 
Simulators_small.jpg

Re: iPhone X (simulator) no portrait upside down (LC 8.1.7 / Xcode 9.0.1)

Posted: Mon Nov 06, 2017 10:13 am
by LiveCode_Panos
Hi drkosta,

It looks like "Upside-down portrait mode is not supported on iPhone X.", seen in https://developer.apple.com/ios/human-i ... /iphone-x/

Best,
Panos
--

Re: iPhone X (simulator) no portrait upside down (LC 8.1.7 / Xcode 9.0.1)

Posted: Mon Nov 06, 2017 10:57 am
by drkosta
Ups I could have checked this by my self...

Thanks, this will will avoid a lot of headaches ;)

Regards

Kosta

Re: iPhone X (simulator) no portrait upside down (LC 8.1.7 / Xcode 9.0.1)

Posted: Sat Nov 11, 2017 12:41 pm
by Onlyzen
It seems that the iPhoneX portraitUpsideDown screen orientation does not work in the simulator. For all other devices it does work

Re: iPhone X (simulator) no portrait upside down (LC 8.1.7 / Xcode 9.0.1)

Posted: Sat Nov 11, 2017 2:55 pm
by Klaus
Onlyzen wrote:
Sat Nov 11, 2017 12:41 pm
It seems that the iPhoneX portraitUpsideDown screen orientation does not work in the simulator. For all other devices it does work
Did you read Panos reply above?
If the device itself does not support this, why should its simulator do? 8)