Tried the Xcode simulator gambit, and had an unwelcome surprise. In the Corona simulator the iPhone 5 fills the screen correctly, but when I run the same app in the Xcode iPhone 5 simulator, there are black filler bars at top and bottom.
I’m alarmed that the two simulators handle display height differently, since I don’t have access to a physical iPhone 5 to test with.
I am using a config.lua that I copied from a Corona Labs web page, which tests for iPhone and height:
if string.sub(system.getInfo(“model”),1,4) == “iPad” then
application =
{
content =
{
width = 360,
height = 480,
scale = “letterBox”,
<snip>
}
}
elseif string.sub(system.getInfo(“model”),1,2) == “iP” and display.pixelHeight > 960 then
application =
{
content =
{
width = 320,
height = 568,
scale = “letterBox”,
<snip>
}
}
elseif string.sub(system.getInfo(“model”),1,2) == “iP” then
application =
{
content =
{
width = 320,
height = 480,
scale = “letterBox”,
<snip>
}
}