Iphone 5 content dimensions problems

Hi all,

i’m developing a game for all devices,

when i test on corona simulator (iPhone 5) looks like good and this:

print(display.pixelHeight)

print(display.pixelWidth)

print(display.pixelHeight / display.pixelWidth)

output this:

1136

640

1.775
 

but in iOS Simulator and in iPhone 5 device print:

960

640
1.5

what is the Corona’s problem to get the device height correctly?

I used the config.lua:

www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

Thanks all

Hello @sephirot36,

Did you include the Apple-required iPhone5 “tall” launch image, mentioned in the following guide under “Launch Images”? This is the most common cause of iPhone5 content size issues.

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#launchimage

Best regards,

Brent

Hi!

Sorry i found the solution after post this.

Yes, the solution is make the “Default-568h@2x.png” image and the Simulator looks great!

Thanks a lot!

Hello @sephirot36,

Did you include the Apple-required iPhone5 “tall” launch image, mentioned in the following guide under “Launch Images”? This is the most common cause of iPhone5 content size issues.

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html#launchimage

Best regards,

Brent

Hi!

Sorry i found the solution after post this.

Yes, the solution is make the “Default-568h@2x.png” image and the Simulator looks great!

Thanks a lot!