Thank you guys. Thanks Rob, I admit I am a litte bit confused. As thedavebaxter said, always using 320/480 seems to work fine for me. I tried the config you are refering to but it will screwed up my objects locations since set them up a long time ago using 320/480. I went back to 3230/480 and this seems to work for all IOS devices including the iphone 5 and ipad3.
I also do not see any issue any issue touching buttons on the side of the screen.
The only issue I had was with iphon5 and background image. So I did this (note the,568,384 for iphone 5) :
[lua]if isTall == false then
space = display.newImageRect(imagesPath…“space.jpg”,512,384,true )
space.x = display.contentWidth / 2
space.y = display.contentHeight / 2
space:setFillColor( mRand(0,255), mRand(10,255), mRand(0,255) )
space.alpha = 0.7
else
space = display.newImageRect(imagesPath…“space.jpg”,568,384,true )
space.x = display.contentWidth / 2
space.y = display.contentHeight / 2
space:setFillColor( mRand(0,255), mRand(10,255), mRand(0,255) )
space.alpha = 0.7
end[/lua]
and here my config.lua
[lua]application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
antialias = false,
audioPlayFrequency = 44100,
fps = 30,
imageSuffix =
{
["@2x"] = 2, – for iPhone, iPod touch, iPad1, and iPad2
– ["@4x"] = 4, – for iPad 3
},
},
}[/lua]
Please note that background image space.jpg has 2 versions (1024x768 and 512x384) I do not mind the zoom in in the case of iphone5 since it is just as stars field and look good for all device (at least on the ios xcode simulator on the Mac) since I do not have a iphone5 device (nor ipad3)
Even so it seems to work for me but I still need to learn more about the config file so I will understand why it is working and not working…
In event thanks a lot of guys. I really appreciate the time and your suggestions.
Mo
[import]uid: 100814 topic_id: 32640 reply_id: 129832[/import]