Hi there,
Apple just rejected my build because my app scaled to iPad screen size instead of staying just like the iPhone.
What’s the setting / how do I configure my build so it does not scale like that?
Thanks!
Hi there,
Apple just rejected my build because my app scaled to iPad screen size instead of staying just like the iPhone.
What’s the setting / how do I configure my build so it does not scale like that?
Thanks!
Hi @fabio.lin,
Can you please post the contents of your “config.lua” file so we can inspect?
Thanks,
Brent
local aspectRatio = display.pixelHeight / display.pixelWidth
application =
{
content =
{
width = aspectRatio > 1.5 and 800 or math.floor( 1200 / aspectRatio ),
height = aspectRatio < 1.5 and 1200 or math.floor( 800 * aspectRatio ),
scale = “letterbox”,
fps = 30,
imageSuffix = {
["@2x"] = 1.3,
["@4x"] = 3.0,
},
},
–[[
– Push notifications
notification =
{
iphone =
{
types =
{
“badge”, “sound”, “alert”, “newsstand”
}
}
},
–]]
}
Hi @fabio.lin,
This method of “calculating the content area size” causes all sorts of problems and I encourage you to avoid it.
Please read the following guide(s) and choose a static content area size, along with either the “letterbox”, “zoomEven”, or “adaptive” scale modes. This will save you many headaches and simplify your app development.
https://docs.coronalabs.com/guide/basics/configSettings/index.html#contentscaling
https://docs.coronalabs.com/guide/system/adaptiveScale/index.html
Best regards,
Brent
Thanks for the fast answer Brent. I’ll check those now!
Hi @fabio.lin,
Can you please post the contents of your “config.lua” file so we can inspect?
Thanks,
Brent
local aspectRatio = display.pixelHeight / display.pixelWidth
application =
{
content =
{
width = aspectRatio > 1.5 and 800 or math.floor( 1200 / aspectRatio ),
height = aspectRatio < 1.5 and 1200 or math.floor( 800 * aspectRatio ),
scale = “letterbox”,
fps = 30,
imageSuffix = {
["@2x"] = 1.3,
["@4x"] = 3.0,
},
},
–[[
– Push notifications
notification =
{
iphone =
{
types =
{
“badge”, “sound”, “alert”, “newsstand”
}
}
},
–]]
}
Hi @fabio.lin,
This method of “calculating the content area size” causes all sorts of problems and I encourage you to avoid it.
Please read the following guide(s) and choose a static content area size, along with either the “letterbox”, “zoomEven”, or “adaptive” scale modes. This will save you many headaches and simplify your app development.
https://docs.coronalabs.com/guide/basics/configSettings/index.html#contentscaling
https://docs.coronalabs.com/guide/system/adaptiveScale/index.html
Best regards,
Brent
Thanks for the fast answer Brent. I’ll check those now!