[Resolved] Build for iPad only problem

I think I’m loosing my mind…

I am about 70% finished with my Corona App (I thought while looking at the simulator) and wanted to try it live on my shiny new iPad 3 (or New iPad). Now somehow I cannot get the scaling and/or positioning right. I have read about everything I can find on the blog and forums, but I am lost…

I have stripped everything from my App until I only got this:

[lua]display.setStatusBar( display.HiddenStatusBar )

headerContainer=display.newGroup()
headerBackground = display.newRect(headerContainer, 0, 0, 1024, 32)
headerBackground:setFillColor(55, 55, 55) [/lua]

The simulator shows a nice grey box at the top of my screen, the iPad nothing. I think (know) the box is somewhere to the left and top of / outside the screen, but how can I get it where it belongs? I know more people have / had scaling problems, but I have build the App 30 times with different settings, and I just don’t know where to look anymore.

I really need your help!

Thanks!

My config.lua file

[lua]application =
{
content =
{
width = 768,
height = 1024,
scale = “letterbox”,

imageSuffix =
{
["@2x"] = 2, – images with “@2x” appended will be used for iPad 3
}
}
}[/lua]

I’m using OS X 10.7.4, Xcode 4.3.2 and Corona 2011.704 (2011.12.8) [import]uid: 151400 topic_id: 27313 reply_id: 327313[/import]

Hey there,

Have you tried building with the newer public release, 704a? I cannot recall if that also had issues or not.

Right now the only sure bet AFAIK is to build with the 704 under daily builds (subscribers only) or to wait just a little longer for the next stable release. (That is coming very soon.) [import]uid: 52491 topic_id: 27313 reply_id: 111048[/import]

Hey Peach,

I was afraid the public release / trial release was the problem, since I am using the latest public build (is 704a I think).

Well, I just have to wait until tomorrow, so my company can buy the subscribers licence. Too bad I can’t test anything this weekend… bummer!

Thanks. [import]uid: 151400 topic_id: 27313 reply_id: 111057[/import]

Hey - I see you’re a licensed dev now - grats!

Were you able to test on the newer build? How did it go?

Let me know :slight_smile:

Peach [import]uid: 52491 topic_id: 27313 reply_id: 111110[/import]

Hey,

The public / trail build was the problem.
Now I have a little position problem (simulator different from real iPad 1 & 3), but I will figure it out.

I think it would be nice for trail users to get a popup when building for iPad, with somthing like ‘Sorry, but this buid does not support the iPad 3 for now… subscibe…’ It took me a nice amount of time to figure it out and it is hard to find this info.

Thanks again.
[import]uid: 151400 topic_id: 27313 reply_id: 111113[/import]

Hey,

Sorry it took a bit to figure it out, originally we believe the latest public build (704a) would remedy the situation.

If this were going to remain a problem in the future we would certainly need to do something like you suggested, however as I mentioned above the next stable release is imminent and will fix this problem.

Peach :slight_smile: [import]uid: 52491 topic_id: 27313 reply_id: 111127[/import]

Hey Peach,

New problem (or shall we say a challenge) for resolution check iPads.

I understand I can use @2x for higher resolution local images, to display on an iPad 3.
But I’m making an application that downloads images using network.download(), and then displays them in a grid. On our server I have low and high resolution images for the thumbnails (say 400x400px and 800x800px) and I want the low res images downloaded on the iPad 1 (for bandwidth usage) and the high res images for the new iPad (way more detail). I don’t want to have to download them both and use @2x for the filenames, because I have to download them both and that will take a lot more bandwidth.

I really hope you (or anyone else) know a way to do this, because I can’t find anything on the forums.

Thanks again! [import]uid: 151400 topic_id: 27313 reply_id: 111956[/import]

Check the resolution of the device at the start of the app and then download the appropriate set of images, is my advice. (Because iPad/2 will be the same size whereas obviously iPad3 is huge.)

I believe this should do the trick :slight_smile: [import]uid: 52491 topic_id: 27313 reply_id: 112130[/import]

I am now using the scalefactor from iOSinfo script by BeyondtheTech to determine what iPad the user is using. Thanks BeyondtheTech (and you to Peach)! [import]uid: 151400 topic_id: 27313 reply_id: 112399[/import]

BeyondTheTech is FTW!

Marked as resolved :slight_smile: [import]uid: 52491 topic_id: 27313 reply_id: 112477[/import]