Images not fitting on the screen

I’m having trouble trying to fit the background image and my app buttons to the screen, it all works fine on the simulator but on my device the buttons are way too big and parts of the background don’t show up on my iPhone screen, it looks like the background images are too big for the screen and the only one that fits the screen is the app’s launch image. I made the background images 320 x 480 and 640 x 960 and called them Image.png (for the normal screen size) and Image@2x.png (for the retina display) also this is what my config.lua file looks like:

application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 30,

imageSuffix = {
["@2x"] = 2,
}
}
}
Any ideas why I’m having this trouble?
Thanks. [import]uid: 30766 topic_id: 13570 reply_id: 313570[/import]

Do you use the
display.newImageRect(“myLowResImage.png”, xPos, yPos, myImgWidth, myImgHeight)
when defining your images?

like this?
[lua]local background = display.newImageRect(“myBackground.png”, 0, 0, 320, 480 )[/lua] [import]uid: 13560 topic_id: 13570 reply_id: 49822[/import]

yes, but if I write the Rect to display.newImageRect my background doesn’t show up, all I get is a black screen [import]uid: 30766 topic_id: 13570 reply_id: 49826[/import]

try this
[lua]local background = display.newImageRect(“myBackground.png”,320,480)
background:setReferencePoint(display.TopLeftReferencePoint)
background.x = 0 ;background.y= 0[/lua] [import]uid: 71210 topic_id: 13570 reply_id: 49851[/import]

thanks, it worked!

[import]uid: 30766 topic_id: 13570 reply_id: 49905[/import]