Return wrong size iphone 5

I have problem with iphone 5 v 6.0.1 (not correct show and scale image) Corona v 2013.1025 (2013.2.8)

on emulator iphone 5 i see size

display.viewableContentHeight = 640
display.viewableContentWidth = 1024
display.contentScaleX = 1
display.actualContentHeight = 1136
display.actualContentWidth = 640
display.pixelHeight = 1136
display.pixelWidth = 640
display.screenOriginX = -56
display.screenOriginY = -0

And all fine, game show and scale correct, but on real device I see next:

display.viewableContentHeight = 640
display.viewableContentWidth = 1024
display.contentScaleX = 1.0666667222977
display.actualContentHeight = 1024
display.actualContentWidth = 682
display.pixelHeight = 960
display.pixelWidth = 640
display.screenOriginX = -0
display.screenOriginY = -21

actualContentHeight , actualContentWidth, contentScaleX, pixelHeight, pixelWidth , screenOriginX, screenOriginY - not correct

Please need fast fix [import]uid: 190293 topic_id: 35845 reply_id: 335845[/import]

Hello @rodion,
Did you include an iPhone5 launch image file in your project directory?

The name needs to be exactly this (and it’s a normal dash between “Default” and “568h@2x”, not an “ndash”; sometimes the forum converts it to an “ndash”)

Default-568h@2x.png  

The size of this image file must be exactly 640 x 1136.

Let me know if this helps.
Thanks,
Brent [import]uid: 200026 topic_id: 35845 reply_id: 142523[/import]

config.lua:

application =
{
content =
{
width = 640,
height = 1024,
scale = “letterbox”,
imageSuffix =
{
["@2x"] = 2, },
}
}
}
My image 1140 * 768 and 2280 * 1536 landscape orientation ( app ladscape orientation). This image size and settings guarantee that on any android or ios device user allways see full screen ( on some device image crop left and right for other top-bottom, but user allways see full screen!!!) So what what I expected image will be in full screen and its really full screen on iphone5 emulator, but on real device I see big black part on left-right side screen ( for other device emulator and real device all fine, problem only on real iphone5)

So I think problem that device return wrong size and on real device should work just as well on the emulator

If need I can create test app and add in “Report A Bug”. Write it need or no.
Thanks [import]uid: 190293 topic_id: 35845 reply_id: 142606[/import]

@rodion
That’s because you need to activate “tall-mode” on the actual iPhone 5 device.

To do this, follow the advice Brent gave above:
Add a file called Default-568h@2x.png to the root directory of your project with the exact dimensions he said.

Once that’s done you should be OK :slight_smile:
[import]uid: 70847 topic_id: 35845 reply_id: 142630[/import]

O sorry I did not understand the first time I add Default-568h@2x.png and now all ok. Thanks [import]uid: 190293 topic_id: 35845 reply_id: 142645[/import]

Hello @rodion,
Did you include an iPhone5 launch image file in your project directory?

The name needs to be exactly this (and it’s a normal dash between “Default” and “568h@2x”, not an “ndash”; sometimes the forum converts it to an “ndash”)

Default-568h@2x.png  

The size of this image file must be exactly 640 x 1136.

Let me know if this helps.
Thanks,
Brent [import]uid: 200026 topic_id: 35845 reply_id: 142523[/import]

config.lua:

application =
{
content =
{
width = 640,
height = 1024,
scale = “letterbox”,
imageSuffix =
{
["@2x"] = 2, },
}
}
}
My image 1140 * 768 and 2280 * 1536 landscape orientation ( app ladscape orientation). This image size and settings guarantee that on any android or ios device user allways see full screen ( on some device image crop left and right for other top-bottom, but user allways see full screen!!!) So what what I expected image will be in full screen and its really full screen on iphone5 emulator, but on real device I see big black part on left-right side screen ( for other device emulator and real device all fine, problem only on real iphone5)

So I think problem that device return wrong size and on real device should work just as well on the emulator

If need I can create test app and add in “Report A Bug”. Write it need or no.
Thanks [import]uid: 190293 topic_id: 35845 reply_id: 142606[/import]

@rodion
That’s because you need to activate “tall-mode” on the actual iPhone 5 device.

To do this, follow the advice Brent gave above:
Add a file called Default-568h@2x.png to the root directory of your project with the exact dimensions he said.

Once that’s done you should be OK :slight_smile:
[import]uid: 70847 topic_id: 35845 reply_id: 142630[/import]

O sorry I did not understand the first time I add Default-568h@2x.png and now all ok. Thanks [import]uid: 190293 topic_id: 35845 reply_id: 142645[/import]