Screen resolution/scaling question for iPhone 5

My app runs perfect on the simulator for various devices. I also tested on real Galaxy Tab and have no problem.

But when I tried my app to run in iPhone 5 device today, I found out the app doesn’t use all the longer screen (It has empty spaces in the top & the bottom, only occupying the length of a iPhone 4)

I tried both “zoomEven” & “letterbox” in config.lua scale option.

And my app uses “display.screenOriginY” as the starting Y to calculate positions. (In letterbox, the value is -44 as I printed it out)

What else would I do wrong? Please shed some light on this.

Anything, thanks!

BTW, my config.lua

application = { content = { width = 320, height = 480, scale = "zoomEven", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, fps = 30, } }

See this comment: http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/#comment-9003

Thanks, Jon

When I see your comment, I think it must be it. 

After I added the file, it’s still the same. I think I must have done something wrong somewhere…

Besides, I don’t see the splash image show up when the app starts. Should I see it automatically if I add " Default-568h@2x.png" in the root directory?

lol, I made two stupid mistakes

first, I didn’t pay enough attention to the file extension. My designer gave me a jpg file instead of png.

second, I put the file into a wrong directory (my designated image directory) instead of the root.

Now it’s working!

Thanks again, Jon.

See this comment: http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/#comment-9003

Thanks, Jon

When I see your comment, I think it must be it. 

After I added the file, it’s still the same. I think I must have done something wrong somewhere…

Besides, I don’t see the splash image show up when the app starts. Should I see it automatically if I add " Default-568h@2x.png" in the root directory?

lol, I made two stupid mistakes

first, I didn’t pay enough attention to the file extension. My designer gave me a jpg file instead of png.

second, I put the file into a wrong directory (my designated image directory) instead of the root.

Now it’s working!

Thanks again, Jon.