I’ve just started using Director Class, and I’m having trouble with content scaling now. When I try to test my app in any view other than the iPhone, the background does not scale and all other objects (a title image and three buttons) align to the upper-left. I’ve tried playing around with the “scale” value in the config.lua file but to no avail. Not sure what I’m doing wrong here.
This is my config.lua code (in case of typos I missed)
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
imageSuffix =
{
["@2x"] = 2,
},
}
}
I should note that if I remove the scale line the text will be aligned with the background similar to the iPhone view, but the content does not scale. I do NOT get this effect if I simply set the scale to “none” [import]uid: 100403 topic_id: 20988 reply_id: 320988[/import]