Black screen in top and bottum when I am using below code in config file for my application
if ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” and display.pixelHeight > 960 ) then
application =
{
content =
{
width = 320,
height = 568,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
device=“iphone5”,
imageSuffix =
{
["@2x-568h"] = 1.5,
},
},
}
elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” ) then
application =
{
content =
{
width = 320,
height = 480,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 2.0,
},
},
}
end
version in iphone 5 is ios 7.1 …, It is not returning proper display.pixelHeight, when I am running same in corona simulator it is working fine but when i install the same in my iphone 5 it is not working proper(having black screen in top and bottum).
can any body give proper solution for the same.
Thanks in advance