Good evening
I have confused ideas I’m not very experienced
I’m creating an App and I want to use the dynamic image scale
The app must work on all devices
I want to insert a button on the bottom of the screen and changing the phone I want the button to see the same point on all the screens.
I calculated the scale factor with:
display.pixelHeight / display.actualContentHeight
but both on iphone 4s and iphone 5 always returns me 2 then the button located at the bottom on iphone 5 on iphone 4s is not seen.
I attach the code of my config:
application = {
content = {
width = 320,
height = 480,
scale = “letterbox”,
fps = 30,
– imageSuffix = {
– ["@2x"] = 2,
–}
},
--[[
– Push notifications
notification =
{
iphone =
{
types =
{
“badge”, “sound”, “alert”, “newsstand”
}
}
}
--]]
}
I have read the various documents but have not been able to solve the problem
Thank you very much to those who help me and apologize for the English