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