Image fill the screen on iOS

Hi folks!

When I created a build on iOS view as iPhone 4 - 640x960, the background isn’t filling all screen of device and simulator, only this view.

But I build the same project on Windows and view as iPhone 4 - 640-960, it works fine.

I created a same image with @2x and size different, but hasn’t difference. Is there other solution?

Thanks!

config.lua:

application = { content = { width = aspectRatio \> 1.5 and 800 or math.ceil( 1200 / aspectRatio ), height = aspectRatio \< 1.5 and 1200 or math.ceil( 800 \* aspectRatio ), xAlign = "center", yAlign = "center", scale = "letterBox", fps = 30, imageSuffix = { ["@2x"] = 1.5, }, },

Can you post your code where you’re creating your background?

Are you saying on Windows it works but on macOS (in the Corona SDK simulator) that it doesn’t?

This topic solved my doubt! :) : https://forums.coronalabs.com/topic/63715-displaypixelwidthheight-of-iphone-4-doesnt-show-images-at-full-displaycontentwidthheight/#entry330628

Can you post your code where you’re creating your background?

Are you saying on Windows it works but on macOS (in the Corona SDK simulator) that it doesn’t?

This topic solved my doubt! :) : https://forums.coronalabs.com/topic/63715-displaypixelwidthheight-of-iphone-4-doesnt-show-images-at-full-displaycontentwidthheight/#entry330628