Skip to main content
Inspiring
February 11, 2014
Question

stage.fullScreenWidth / IOS

  • February 11, 2014
  • 1 reply
  • 399 views

Are stage.fullScreenWidth and stage.fullScreenHeight only reporting the wrong value in the IOS simulator for the iphone 5 ? Is there a better way to detect the device ?

Thanks

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
February 11, 2014

Capabilities.screenResolutionX and Capabilities.screenResolutionY give you the width and height of the device.

CalwenAuthor
Inspiring
February 11, 2014

I know that in theory it should do it but it still report the wrong width and height for the iPhone5

CalwenAuthor
Inspiring
February 11, 2014

Found the answer in another thread, here it is: "To get the right dimensions you will need to have included a splash screen for the iPhone 5 size, with a name of "Default-568h@2x.png". That image would be 640x1136, and when iOS sees it, it then knows that you want the iPhone 5 to use the whole screen."