I try to build a universal app for iphone and Ipad
I have images Icon.png, Icon-60@2x.png, Icon-76.png, Icon-76@2x.png in the folder
in config.lua I have
When I test in the iphone retina ,it is display the Icon-60@2X.png, It is ok but
When I test in the ipad retina, it is display the Icon-60@2x.png.
I want to be displayed icon-76@2x.png
in the build.settings I have
settings = {
iphone =
{
plist =
{
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”
},
}
},
}
in the config.lua I have
[lua]-- For iPads
if system.getInfo(“model”) == “iPad” or system.getInfo(“model”) == “iPad Simulator” then
application = {
content = {
graphicsCompatibility = 1,
width = 360,
height = 480,
scale = “zoomEven”,
audioPlayFrequency=“44100”,
fps = 60,
imageSuffix = {
["@2x"] = 2,
["@4x"] = 4,
}
}
}
– For “tall” sizes (iPhone 5 and new iTouch)
elseif display.pixelHeight > 960 then
application = {
content = {
graphicsCompatibility = 1,
width = 320,
height = 568,
scale = “zoomEven”,
audioPlayFrequency=“44100”,
fps = 60,
imageSuffix = {
["@2x"] = 2,
}
}
}
else – For traditional sizes (iPhone 4S & below, old iTouch)
application = {
content = {
graphicsCompatibility = 1,
width = 320,
height = 480,
scale = “zoomEven”,
audioPlayFrequency=“44100”,
fps = 60,
imageSuffix = {
["@2x"] = 2,
}
}
}
end
[/lua]