Is there a way to identity if the app is running on an iPhone X?
For example i want to position my pause button in a different location on it.
Is there something like system.getInfo(“architectureInfo”) i could call to identify it?
Thanks
Is there a way to identity if the app is running on an iPhone X?
For example i want to position my pause button in a different location on it.
Is there something like system.getInfo(“architectureInfo”) i could call to identify it?
Thanks
I use display.safeScreenOriginY to display the buttons on the top in a different position.
Here is the crappy code I use (there is probably a better way). In this code add_HUnit would always be zero unless it is running on the iPhone X.
local add\_HUnit = math.floor(display.safeScreenOriginY/2) ... btn\_home.y = defaultYPosition + add\_HUnit
Why does everyone keep posting about this, when it has been answered here a number of times?
Please search the forums via Google with this search technique
site: coronalabs.com iphonex
hunt, peck, …look at results… find answer:
https://forums.coronalabs.com/topic/70794-is-there-a-way-to-detect-if-the-app-is-running-on-an-iphone-x/
PS - I realize the whole iPhoneX thing is a pain and an emergency, but … grumble grumble… I think every scenario and question has been resolve here over the last week or two.
And while I’m complaining like an old man… "Get off my lawn!’
Your assumption “add_HUnit would always be zero unless it is running on the iPhone X.” is true on Corona Simulator skins.
but on Xcode simulators none will be zero. please check and let us know.
I use display.safeScreenOriginY to display the buttons on the top in a different position.
Here is the crappy code I use (there is probably a better way). In this code add_HUnit would always be zero unless it is running on the iPhone X.
local add\_HUnit = math.floor(display.safeScreenOriginY/2) ... btn\_home.y = defaultYPosition + add\_HUnit
Why does everyone keep posting about this, when it has been answered here a number of times?
Please search the forums via Google with this search technique
site: coronalabs.com iphonex
hunt, peck, …look at results… find answer:
https://forums.coronalabs.com/topic/70794-is-there-a-way-to-detect-if-the-app-is-running-on-an-iphone-x/
PS - I realize the whole iPhoneX thing is a pain and an emergency, but … grumble grumble… I think every scenario and question has been resolve here over the last week or two.
And while I’m complaining like an old man… "Get off my lawn!’
Your assumption “add_HUnit would always be zero unless it is running on the iPhone X.” is true on Corona Simulator skins.
but on Xcode simulators none will be zero. please check and let us know.