[RESOLVED!!] Tall Mode doesn't kick in on device.

I added Default–568h@2x.png (640x1136) to my project folder, and my project looks perfectly fine on Corona Simulator. That is, it looks as expected and perfectly fine on iPhone, iPhone 4, iPhone 5, iPad and iPad Retina skin. However, when I generate a device build and install it on tall device (both iPod Touch 5G and iPhone 5), the tall mode won’t kick in. Instead, it’s letter boxed to look like it’s made for 4G device. (I used daily build 934 and Xcode 4.5)

I read related blog posts. I also tried workaround posted on Forum. But none of them worked for me (see URLs below). I mean, I tried changing my config.lua and tweaking height. I tried adding isTall plus if-statement to config.lua. I even wiped the iPod Touch 5G (by erasing all content & settings), deleted Default png files, recreated them, and added them back to project folder, etc., etc… But none of them made any difference. My build simply refuses to show up in tall mode on device.

So I went ahead and created a very simple project illustrating the exact issue (which I tested on tall devices and confirmed it manifests the same problem) and submitted a bug report: Case 18311

I just hope CoronaLabs team can reproduce what I’m seeing… and find a fix… (And if it’s something I’m doing wrong, I hope I hear back with details so that I can share it here with others who may encounter the very same problem.)

Naomi

http://developer.coronalabs.com/forum/2012/09/12/iphone-5-doesnt-fill-entire-screen#comment-123884
http://www.coronalabs.com/blog/2012/09/14/corona-guidelines-iphone-5-and-ios6-preliminary/
http://developer.coronalabs.com/forum/2012/09/18/supporting-iphone-5-configlua-still-need-tall-splash-image
http://www.coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6/
http://developer.coronalabs.com/forum/2012/10/10/getting-iphone-5-display-retina-images-without-borders-landscape#comment-126957
http://developer.coronalabs.com/forum/2012/10/12/having-issues-building-without-letterboxing-iphone-5#comment-127917

http://developer.coronalabs.com/forum/2012/10/03/cannot-manage-support-tall-screen-iphone-5
[import]uid: 67217 topic_id: 32306 reply_id: 332306[/import]

Hi Naomi,

Here is the config.lua and Default–568h@2x.png that I use on my project that works perfectly on the device.

Maybe try it in your’s and see if it helps?

Remember to delete the app from your device before copying it over with Xcode, so it installs fresh.

https://docs.google.com/open?id=0B38X7HDju4_TcXk4LTBIUVlTUEU [import]uid: 62706 topic_id: 32306 reply_id: 128594[/import]

Hi!
I’v had the same problem for two days now. I tried everything, and now it seems like i have just spelled the filename incorrectly.

Comparison :

Default–568h@2x.png : correct!
Default-568h@2x.png : incorrect!

It seems like the correct filename should be spelled with a “Em dash” instead of the identical Hyphen.

Thanks @CraftyDeano! You have probably saved me a lot of debugging time!
[import]uid: 103182 topic_id: 32306 reply_id: 128635[/import]

The name shows in blue above because there is a <mailto:> tag wrapping the text. Filenames don’t use HTML markup, and they names look identical. I’m wondering if you had a space or special character in your filename causing the problem.

[import]uid: 19626 topic_id: 32306 reply_id: 128661[/import]

Hi Naomi,

Here is the config.lua and Default–568h@2x.png that I use on my project that works perfectly on the device.

Maybe try it in your’s and see if it helps?

Remember to delete the app from your device before copying it over with Xcode, so it installs fresh.

https://docs.google.com/open?id=0B38X7HDju4_TcXk4LTBIUVlTUEU [import]uid: 62706 topic_id: 32306 reply_id: 128594[/import]

Hi!
I’v had the same problem for two days now. I tried everything, and now it seems like i have just spelled the filename incorrectly.

Comparison :

Default–568h@2x.png : correct!
Default-568h@2x.png : incorrect!

It seems like the correct filename should be spelled with a “Em dash” instead of the identical Hyphen.

Thanks @CraftyDeano! You have probably saved me a lot of debugging time!
[import]uid: 103182 topic_id: 32306 reply_id: 128635[/import]

The name shows in blue above because there is a <mailto:> tag wrapping the text. Filenames don’t use HTML markup, and they names look identical. I’m wondering if you had a space or special character in your filename causing the problem.

[import]uid: 19626 topic_id: 32306 reply_id: 128661[/import]

Hi Naomi,

that solved it for me, too. I copied the name from the blog post, and it looked identical - but wasn’t.

What a waste of time this has been, but I’m just happy now that it works, I want to upload in three days, so I started to get nervous… :slight_smile:

Thank you for putting so much effort in this and helping other guys like me!

Best,
Andreas
[import]uid: 133261 topic_id: 32306 reply_id: 128900[/import]

Hi Naomi,

that solved it for me, too. I copied the name from the blog post, and it looked identical - but wasn’t.

What a waste of time this has been, but I’m just happy now that it works, I want to upload in three days, so I started to get nervous… :slight_smile:

Thank you for putting so much effort in this and helping other guys like me!

Best,
Andreas
[import]uid: 133261 topic_id: 32306 reply_id: 128900[/import]

I guess I should comment on Corona’s blog post about this so that no one else will waste hours/days over this silly problem, eh?

Naomi

P.S. Yup. Just made a post. Hope it will help others. Cheers.

P.P.S. BTW, I know the blog post was never meant to cause anyone any problems. It’s just that, things looks/works differently when it translates to file name, I suppose… I mean, I’m absolutely sure it was never intended to be copied and pasted to file name like I (and the others) did. How can anyone foresee how public/users would behave and what the implications might be until the issue surfaces anyhow… [import]uid: 67217 topic_id: 32306 reply_id: 128999[/import]

Hey, Rob, you know, I copied and pasted the file name from the Corona’s blog post – I did this just to ensure that I didn’t make typo – and it ended up causing me the issue. As @monogames pointed out, it’s about Hyphen/Dash that appears the same when used in file name (and they look the same on Forum), even though are not the same character. If you copy and paste the blue and non-blue file names to text editor, you’ll see the difference.

Naomi

Edit: BTW, I may or may not have copied the file name from the blog post. I think I did, but I could’ve gotten the file name directly from Forum post. At any rate, the bottom line is, I copied and pasted the file name instead of spelling it out on my own, and that’s ended up causing the issue for me. [import]uid: 67217 topic_id: 32306 reply_id: 128683[/import]

Wow, @CraftyDeano and @monogames, thanks! I finally got the tall mode to kick in just by using CrafyDeano’s Default-568h@2x.png file. I didn’t change my config.lua. All I needed was renaming my Default–568h@2x.png file to Default-568h@2x.png.

Here’s what I tried:

  1. Copied the correct file name that @monogames supplied above and renamed my Default–568h@2x.png file to match exactly it. (I even copied both correct and incorrect file name to text editor and eyeballed the difference, and then copied and pasted the correct file name.) But, it didn’t work. [After thoughts: I think the reason why it didn’t work is because the correct and incorrect file names are swapped (i.e., mismatched.) Default-568h@2x.png works but Default–568h@2x.png doesn’t.)

  2. Renamed my Default–568h@2x.png file. Downloaded CraftyDeano’s Default-568h@2x.png file (just a white rectangle) and added it to my project folder. IT WORKED!

  3. Copied the file name of CraftyDeano’s Default-568h@2x.png file and then renamed it. Then renamed my file with CraftyDeano’s Default-568h@2x.png file name (pasted the file name when renaming my file). IT WORKED!

The file name appears to be exactly the same, but apparently, they are different (you can eyeball the difference using text editor.) Default-568h@2x.png is the only file name that works. Copying & pasting a wrong file name directly from the website causes issues, even if it looks like it should work. The clue is, if the file name appear bold blue on this Forum, it’s the correct file name. But if it appears in a regular font, it’s incorrect.

By the way, I use letterbox scaling, and I use background image that bleeds outside the basic 320x480 dimension. And my config.lua is simple (see below). Without making any special changes to the config.lua, it worked perfectly fine. No need to tweak or change anything if you don’t need to make custom/unique layout for the tall mode. All you need is the properly named Default-568h@2x.png file.

Thanks again, @CraftyDeano and @monogames!

Naomi

application = { content = { width = 320, height = 480, scale = "letterbox", xAlign = "center", yAlign = "center", fps = 30, antialias = false, imageSuffix = { ["@2x"] = 1.6, ["@4x"] = 3.6, }, }, } [import]uid: 67217 topic_id: 32306 reply_id: 128657[/import]

Most likely the blog was written in something like MIcrosoft Word which has a habit of turning hyphens into n-dashes (a dash the width of the letter “n”. It likes turning double hyphens into M-dashes and that’s likely the cause of it. [import]uid: 19626 topic_id: 32306 reply_id: 129006[/import]

Hey, Rob @robmiracle, yeah, that makes sense. It’s probably what happened.

Naomi [import]uid: 67217 topic_id: 32306 reply_id: 129022[/import]

I guess I should comment on Corona’s blog post about this so that no one else will waste hours/days over this silly problem, eh?

Naomi

P.S. Yup. Just made a post. Hope it will help others. Cheers.

P.P.S. BTW, I know the blog post was never meant to cause anyone any problems. It’s just that, things looks/works differently when it translates to file name, I suppose… I mean, I’m absolutely sure it was never intended to be copied and pasted to file name like I (and the others) did. How can anyone foresee how public/users would behave and what the implications might be until the issue surfaces anyhow… [import]uid: 67217 topic_id: 32306 reply_id: 128999[/import]

Hey, Rob, you know, I copied and pasted the file name from the Corona’s blog post – I did this just to ensure that I didn’t make typo – and it ended up causing me the issue. As @monogames pointed out, it’s about Hyphen/Dash that appears the same when used in file name (and they look the same on Forum), even though are not the same character. If you copy and paste the blue and non-blue file names to text editor, you’ll see the difference.

Naomi

Edit: BTW, I may or may not have copied the file name from the blog post. I think I did, but I could’ve gotten the file name directly from Forum post. At any rate, the bottom line is, I copied and pasted the file name instead of spelling it out on my own, and that’s ended up causing the issue for me. [import]uid: 67217 topic_id: 32306 reply_id: 128683[/import]

Wow, @CraftyDeano and @monogames, thanks! I finally got the tall mode to kick in just by using CrafyDeano’s Default-568h@2x.png file. I didn’t change my config.lua. All I needed was renaming my Default–568h@2x.png file to Default-568h@2x.png.

Here’s what I tried:

  1. Copied the correct file name that @monogames supplied above and renamed my Default–568h@2x.png file to match exactly it. (I even copied both correct and incorrect file name to text editor and eyeballed the difference, and then copied and pasted the correct file name.) But, it didn’t work. [After thoughts: I think the reason why it didn’t work is because the correct and incorrect file names are swapped (i.e., mismatched.) Default-568h@2x.png works but Default–568h@2x.png doesn’t.)

  2. Renamed my Default–568h@2x.png file. Downloaded CraftyDeano’s Default-568h@2x.png file (just a white rectangle) and added it to my project folder. IT WORKED!

  3. Copied the file name of CraftyDeano’s Default-568h@2x.png file and then renamed it. Then renamed my file with CraftyDeano’s Default-568h@2x.png file name (pasted the file name when renaming my file). IT WORKED!

The file name appears to be exactly the same, but apparently, they are different (you can eyeball the difference using text editor.) Default-568h@2x.png is the only file name that works. Copying & pasting a wrong file name directly from the website causes issues, even if it looks like it should work. The clue is, if the file name appear bold blue on this Forum, it’s the correct file name. But if it appears in a regular font, it’s incorrect.

By the way, I use letterbox scaling, and I use background image that bleeds outside the basic 320x480 dimension. And my config.lua is simple (see below). Without making any special changes to the config.lua, it worked perfectly fine. No need to tweak or change anything if you don’t need to make custom/unique layout for the tall mode. All you need is the properly named Default-568h@2x.png file.

Thanks again, @CraftyDeano and @monogames!

Naomi

application = { content = { width = 320, height = 480, scale = "letterbox", xAlign = "center", yAlign = "center", fps = 30, antialias = false, imageSuffix = { ["@2x"] = 1.6, ["@4x"] = 3.6, }, }, } [import]uid: 67217 topic_id: 32306 reply_id: 128657[/import]

Most likely the blog was written in something like MIcrosoft Word which has a habit of turning hyphens into n-dashes (a dash the width of the letter “n”. It likes turning double hyphens into M-dashes and that’s likely the cause of it. [import]uid: 19626 topic_id: 32306 reply_id: 129006[/import]

Hey, Rob @robmiracle, yeah, that makes sense. It’s probably what happened.

Naomi [import]uid: 67217 topic_id: 32306 reply_id: 129022[/import]

Develpors are connected to a high network to develop the ideas the network is designed to make available resources to help software developers write software for the Mac OS X and iOS platforms. iPhone Case [import]uid: 196869 topic_id: 32306 reply_id: 131456[/import]