iPhone screen cutting off

OK, I know this has been asked a million times, and Rob has answered it a million and one! 

I just can’t any of the posts that work!

Here’s the config.lua I’ve tried…

application = { content = { width = 480, height = 800, scale = "letterbox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }

I’ve tried, ZoomEven, ZoomStretch, Adaptive.

I’ve changed width/height to 480x800, 1080x1920,640x960 but with all of them, there is a large (1/2") gap at the bottom of the screen.

I shifted the buttons on the bottom so I know they are offscreen, not positioned incorrectly.

I’ve struggled with this over weeks so I figured I’d ask the masters here!

https://forums.coronalabs.com/topic/33159-iphone-5-and-zoomstretch-scale-mode-not-work/

I tried adding a  Default-568h@2x.png to the root folder with the same results.

OK, that AND this gave me the correct result… THANK YOU :slight_smile:

application = { content = { width = 640, height = 1136, scale = "letterbox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }

@graham you are much better off using the new launch image approach as that doesn’t require “hack it” image files and is the preferred method moving forward (it makes smaller compiles too!)

Read this https://docs.coronalabs.com/guide/distribution/launchFile/index.html

Edit: Also changing width from 480 to 640 will mean a change in devices seeing your @2x and @4x assets.  

For example, only devices with a width >= 1920px will ever get served @4x

Thanks Adrian, that’s a good article. I had seen some posts around this, but nothing that explained HOW to do it.

While I’ve read numerous articles around this topic, I wish there were an up to date article that brings it to a simple level. 

I appreciate there are many reasons and settings that people use, but for the newbies, we just (I use the term ‘just’ loosely) want to know how we can target the standard platforms (iPhone 5,6,7,8 & Samsung S8,7,6 etc). I’ll give that a good read and see how it works out.

Appreciate the tip.

OK, that was easy, and a much better output too.

Thank again!

https://forums.coronalabs.com/topic/33159-iphone-5-and-zoomstretch-scale-mode-not-work/

I tried adding a  Default-568h@2x.png to the root folder with the same results.

OK, that AND this gave me the correct result… THANK YOU :slight_smile:

application = { content = { width = 640, height = 1136, scale = "letterbox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }

@graham you are much better off using the new launch image approach as that doesn’t require “hack it” image files and is the preferred method moving forward (it makes smaller compiles too!)

Read this https://docs.coronalabs.com/guide/distribution/launchFile/index.html

Edit: Also changing width from 480 to 640 will mean a change in devices seeing your @2x and @4x assets.  

For example, only devices with a width >= 1920px will ever get served @4x

Thanks Adrian, that’s a good article. I had seen some posts around this, but nothing that explained HOW to do it.

While I’ve read numerous articles around this topic, I wish there were an up to date article that brings it to a simple level. 

I appreciate there are many reasons and settings that people use, but for the newbies, we just (I use the term ‘just’ loosely) want to know how we can target the standard platforms (iPhone 5,6,7,8 & Samsung S8,7,6 etc). I’ll give that a good read and see how it works out.

Appreciate the tip.

OK, that was easy, and a much better output too.

Thank again!