Skip to main content
Inspiring
Feb 11, 2014 9:00 PM UTC
Question

stage.fullScreenWidth / IOS

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Colin Holgate
Inspiring
Feb 11, 2014 9:16 PM UTC

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

Translate
CalwenAuthor
Inspiring
Feb 11, 2014 9:20 PM UTC

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

Translate
CalwenAuthor
Inspiring
Feb 11, 2014 9:26 PM UTC

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

Translate