Config/settings for iPad-only app?

I’m just using Corona for the first time and considering it for an iPad-only project.

I can’t find any information on setting up for an iPad-only app, only Universal apps. Should config.lua remain as:

application =
{
content =
{
width = 320,
height = 480,
scale = “zoomEven”
}
}

or include:

application =
{
content =
{
width = 1024,
height = 768,
scale = “zoomEven”
}
}

Many thanks! [import]uid: 90222 topic_id: 15141 reply_id: 315141[/import]

All you need is this part;

[lua]application =
{
content =
{
width = 768,
height = 1024,
scale = “zoomEven”
}
}[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 15141 reply_id: 56002[/import]

Superb, thanks! I figured as much but couldn’t find it documented anywhere.
Are the width and height always defined as if the device is portrait? [import]uid: 90222 topic_id: 15141 reply_id: 56008[/import]

Hey there, no worries :slight_smile:

And yes - always set them as the real height and width. (When you choose to only support landscape, the app “knows” it’s on it’s side ;))

Peach [import]uid: 52491 topic_id: 15141 reply_id: 56131[/import]

Perfect, thanks! [import]uid: 90222 topic_id: 15141 reply_id: 56193[/import]

For Ipad only does it always has to be “zoomEven”? I noticed if you put “letterbox” it wont cover the whole screen even if the background is the iPad size but if you put “letterbox” for iPhone and the image is iphone size it will cover whole screen. Also if you put “none” then if the image is iPad size it will cover the whole screen but the image turned more “colorful” im still messing around till I get the proper way to configure iPad only App. [import]uid: 30314 topic_id: 15141 reply_id: 70565[/import]

Hey LeivaGames,

Thanks for sharing this “tests info” you are doind there.

Please, would you mind posting here anything new you find about these “scale factors”?

PS: Using images like 2@x (double resolution - 960x640) and having setup in the config.lua file set for 320x480 and using “letterbox” scale factor will make the background have those black remaining borders (arrgh).

So when you say:

…“but if you put “letterbox” for iPhone and the image is iphone size it will cover whole screen.”

I think here you mean using the image at the normal iPhone resolution (non-Retina) right?

If so yes, I think I`ve seen that it “works” but also get the image resource looking “blurry” as well due to the low resolution of the image and the “high” scale factor. So what to do? :slight_smile:

PS: All I said above is regarding the iPad`s Device Resolution (728x1024px) only as it “black borders”.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 15141 reply_id: 70574[/import]

@ Rodrigo RSCdev

You are welcome, Ill update any new test or anything worth finding out regarding this “issue” honestly it just seems is a lot easier filing up the iPhone screen with a simple config.lua and “letterbox” but I get different results when trying to fill the whole iPad screen. I started a thread regarding this problem and I explained more detailed on whats going on here is the link.

Link: https://developer.anscamobile.com/forum/2011/11/30/ipad-only-configlua-question [import]uid: 30314 topic_id: 15141 reply_id: 70673[/import]