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

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
drkosta
Posts: 34
Joined: Wed May 22, 2013 8:40 pm
Location: Stuttgart / Germany
Contact:

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

Post by drkosta » Sun Nov 05, 2017 10:01 pm

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

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Mon Nov 06, 2017 10:13 am

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
--

drkosta
Posts: 34
Joined: Wed May 22, 2013 8:40 pm
Location: Stuttgart / Germany
Contact:

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

Post by drkosta » Mon Nov 06, 2017 10:57 am

Ups I could have checked this by my self...

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

Regards

Kosta

Onlyzen
Posts: 2
Joined: Fri Jul 21, 2017 12:36 pm
Location: United States

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

Post by Onlyzen » 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

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sat Nov 11, 2017 2:55 pm

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)

Post Reply

Return to “iOS Deployment”