Loading Screen iPhone5

What’s the right naming for a landscape and a portrait default screen for the iPhone5?

Thanks! [import]uid: 90610 topic_id: 33134 reply_id: 333134[/import]

Default-568h@2x.png :slight_smile: [import]uid: 62706 topic_id: 33134 reply_id: 131547[/import]

thanks, thats the naming i am using but it doesnt work in the simulator.

also, how can i have one for portrait and one for landscape mode?

also, the @2x, does this come from the config file? [import]uid: 90610 topic_id: 33134 reply_id: 131548[/import]

The Corona simulator doesn’t use splash images, if you test on the device (or maybe xcode simulator?) it should show briefly.

As far as i know, you can only have one splash image, and cannot specify if its landscape or portrait, It’ll just show the image how it is.

I think the @2x is in the splash image is automatically picked up by iPhone 5’s in my experience, you shouldnt need to specify the @2x for the splash in config.lua.

Here is the config.lua I use

[lua]local targetDevice = ( system.getInfo( “model” ) )
local isTall = ( “iPhone” == system.getInfo( “model” ) ) and ( display.pixelHeight > 960 )

if isTall == false and targetDevice == “iPhone” then
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}

elseif isTall == true then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
},
}

elseif targetDevice == “iPad” then
application =
{
content =
{
width = 768,
height = 1024,
scale = “letterbox”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
end[/lua]
[import]uid: 62706 topic_id: 33134 reply_id: 131550[/import]

@crafty: i have a Default.png and Default-Landscape.png. First is portrait, second landscape. and they work both on device and simulator (on windows).

so that’s why i am confused :slight_smile: [import]uid: 90610 topic_id: 33134 reply_id: 131552[/import]

Oh right, never knew you could have a landscape one with -Landscape.

I’ve never had my one working in the simulator, and just assumed it wasn’t supported. [import]uid: 62706 topic_id: 33134 reply_id: 131553[/import]

Just been through this myself. I made the image landscape and when on a actual device it shows it portrait so it’s all squashed and weird looking.

So I have rotated it 90 degrees, so it’s portrait but everything in it is landscape.

Basically it has to be 640 x 1136 NOT 1136 x 640.

Dave [import]uid: 117617 topic_id: 33134 reply_id: 131558[/import]

would be great to have an “official” statement here. i will check on device tomorrow and see if its only not correctly displaying in the simulator.

[import]uid: 90610 topic_id: 33134 reply_id: 131559[/import]

I don’t believe that Apple uses a landscape version of the Default-568@2x.png at this time.
[import]uid: 19626 topic_id: 33134 reply_id: 131578[/import]

yes, I think you’re right there!

only question now… is it only me or does the iphone5 splash screen not work in the simulator? thanks! [import]uid: 90610 topic_id: 33134 reply_id: 131596[/import]

Hey, @dingo, my Default-568@2x.png does not show up on simulator but it does on iPhone 5 device.

And actually, for that matter, none of my Default pngs show up on simulator, but they all do on target devices. Now I’m curious. Are you calling your Default.png and/or Default-Landscape.png to appear in your code so that it will remain displayed after the launch is completed – and therefore, they appear on simulator too?

Naomi [import]uid: 67217 topic_id: 33134 reply_id: 131608[/import]

Default-568h@2x.png :slight_smile: [import]uid: 62706 topic_id: 33134 reply_id: 131547[/import]

thanks, thats the naming i am using but it doesnt work in the simulator.

also, how can i have one for portrait and one for landscape mode?

also, the @2x, does this come from the config file? [import]uid: 90610 topic_id: 33134 reply_id: 131548[/import]

thanks for your answer!

i am only putting the default and default-landscape into my folder, not doing anything with it :slight_smile:

it is getting displayed like 0.5-1second, the whole image scaling up from center position :slight_smile:

am i the only one seeing the splash screen in the simulator?? (windows) [import]uid: 90610 topic_id: 33134 reply_id: 131615[/import]

The Corona simulator doesn’t use splash images, if you test on the device (or maybe xcode simulator?) it should show briefly.

As far as i know, you can only have one splash image, and cannot specify if its landscape or portrait, It’ll just show the image how it is.

I think the @2x is in the splash image is automatically picked up by iPhone 5’s in my experience, you shouldnt need to specify the @2x for the splash in config.lua.

Here is the config.lua I use

[lua]local targetDevice = ( system.getInfo( “model” ) )
local isTall = ( “iPhone” == system.getInfo( “model” ) ) and ( display.pixelHeight > 960 )

if isTall == false and targetDevice == “iPhone” then
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}

elseif isTall == true then
application =
{
content =
{
width = 320,
height = 568,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
},
}

elseif targetDevice == “iPad” then
application =
{
content =
{
width = 768,
height = 1024,
scale = “letterbox”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2x"] = 2,
},
},
}
end[/lua]
[import]uid: 62706 topic_id: 33134 reply_id: 131550[/import]

@crafty: i have a Default.png and Default-Landscape.png. First is portrait, second landscape. and they work both on device and simulator (on windows).

so that’s why i am confused :slight_smile: [import]uid: 90610 topic_id: 33134 reply_id: 131552[/import]

Oh right, never knew you could have a landscape one with -Landscape.

I’ve never had my one working in the simulator, and just assumed it wasn’t supported. [import]uid: 62706 topic_id: 33134 reply_id: 131553[/import]

Just been through this myself. I made the image landscape and when on a actual device it shows it portrait so it’s all squashed and weird looking.

So I have rotated it 90 degrees, so it’s portrait but everything in it is landscape.

Basically it has to be 640 x 1136 NOT 1136 x 640.

Dave [import]uid: 117617 topic_id: 33134 reply_id: 131558[/import]

would be great to have an “official” statement here. i will check on device tomorrow and see if its only not correctly displaying in the simulator.

[import]uid: 90610 topic_id: 33134 reply_id: 131559[/import]

I don’t believe that Apple uses a landscape version of the Default-568@2x.png at this time.
[import]uid: 19626 topic_id: 33134 reply_id: 131578[/import]