Skip to main content
Participant
November 13, 2012
Answered

Capabilities.screenResolutionY returning incorrect value for iPhone5

  • November 13, 2012
  • 1 reply
  • 1177 views

Hello,

I am attempting to make gui adjustments based on the values returned by flash.system.Capabilities. However when I test on the iPhone5 in portrait mode the values returned are screenResolutionX: '640' and screenResolutionY: '960'. I am compiling with air 3.5 in renderMode: 'gpu' and have set the swf metadata tp widthPercent: 100% and heightPercent: 100%. Am I doing something incorrectly?

Thanks

CJ

This topic has been closed for replies.
Correct answer Colin Holgate

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.

1 reply

Colin Holgate
Colin HolgateCorrect answer
Inspiring
November 13, 2012

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.