We have several games on App Store. They worked before. But they start to have wrong layout on iPad mini 2 after iPad upgrades to iOS9. The view’s layout is good on iPhone5 with iOS9.
We use latest daily build (2725) and xcode7.0. Config.lua likes below:
local device = system.getInfo(“model”)
print("model is ", device)
if device == “iPad” or device == “iPad Simulator” then
--iPad
print( display.pixelWidth, display.pixelHeight )
application =
{
content =
{
width = 768,
height = 1024,
scale = “zoomStretch”,
--antialias = true,
– xAlign = “left”,
– yAlign = “center”,
imageSuffix =
{
["@2x"] = 2,
}
},
}
elseif device == “iPhone” or device == “iPod touch” or device == “iPhone Simulator” then
– iPhone or iPod touch
if display.pixelHeight > 960 then
– iPhone 5 or iPod touch 5
application =
{
content =
{
width = 640,
height = 1136,
scale = “zoomStretch”,
--antialias = true,
},
}
else
application =
{
content =
{
width = 640,
height = 960,
scale = “zoomStretch”,
– antialias = true,
imageSuffix =
{
["@0.5x"] = 0.5,
}
},
}
end
else
– Android device
application =
{
content =
{
width = 640,
height = 960,
scale = “zoomStretch”,
--antialias = true,
imageSuffix =
{
["@0.5x"] = 0.5,
["@2x"] = 2,
}
},
license =
{
},
}
end