Hi Guys:
I really need your help to set it up as I don’t have a Tall iPod Touch. I tried to search it in the forum but nothing come up.
As I am not sure if the key work is “iPod Touch” or “iPod touch”, I used both of them in the if statement.
Please kindly check if this is working.
[code]
local targetDevice = ( system.getInfo( “model” ) )
local isTall = ( “iPhone” == system.getInfo( “model” ) ) and ( display.pixelHeight > 960 )
local isTall2 = ( “iPod Touch” == system.getInfo( “model” ) ) and ( display.pixelHeight > 960 )
local isTall3 = ( “iPod touch” == system.getInfo( “model” ) ) and ( display.pixelHeight > 960 )
if isTall == false and targetDevice == “iPhone” then
application =
{
content =
{
width = 320,
height = 568,
scale = “letterbox”,
fps = 30,
–antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
},
},
}
elseif isTall3 == true and targetDevice == “iPod Touch” then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
scale = “letterbox”,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
elseif isTall3 == true and targetDevice == “iPod touch” then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
scale = “letterbox”,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
elseif isTall2 == true and targetDevice == “iPod Touch” then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
scale = “letterbox”,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
elseif isTall2 == true and targetDevice == “iPod touch” then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
scale = “letterbox”,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
elseif isTall == true then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
scale = “letterbox”,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
elseif targetDevice == “iPad” then
application =
{
content =
{
width = 768,
height = 1024,
scale = “letterbox”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
end [import]uid: 81853 topic_id: 31914 reply_id: 331914[/import]