I am finding it difficult to understand why the following image displays perfectly well on Corona Simulator but seems to be cut off on my iPhone.
Here is my config.lua file:
if ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” and display.pixelHeight > 960 ) then
application =
{
content =
{
width = 640,
height = 1136,
scale = “letterBox”,
xAlign = “center”,
yAlign = “top”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}end
and my main.lua file is as follows:
local TOP_REF = 0
local BOTTOM_REF = 1
local LEFT_REF = 0
local RIGHT_REF = 1
local CENTER_REF = 0.5
local Green = display.newImage(“Green.png”, true)
Green.anchorX = LEFT_REF; Green.anchorY = TOP_REF;
Green.x = 0; Green.y = 0;