problem: iphone corona simulator vs iphone xcode simulator

Hello,

I created an app for iphones and androids.

I generated a build for android and it worked perfectly, same in the simulator of the crown.

But when I went to test on iphone, the application was not distorted (other than the iphone corona simulator)

Why did this happen?

Below photo of iphone concurrent corona and then iphone xcode simulator (https://imgur.com/a/68oP1)

Also the config.lua file

if string.sub(system.getInfo("model"),1,4) == "iPad" then application = { content = { width = 750, height = 1280, scale = "letterbox", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, notification = { iphone = { types = { "badge", "sound", "alert" } } } } elseif string.sub(system.getInfo("model"),1,2) == "iP" and display.pixelHeight \> 960 then application = { content = { width = 750, height = 1280, scale = "zoomStretch", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, notification = { iphone = { types = { "badge", "sound", "alert" } } } } elseif string.sub(system.getInfo("model"),1,2) == "iP" then application = { content = { width = 835, height = 1380, scale = "zoomStretch", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, notification = { iphone = { types = { "badge", "sound", "alert" } } } } elseif display.pixelHeight / display.pixelWidth \> 1.72 then application = { content = { width = 800, height = 1440, scale = "zoomStretch", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } else application = { content = { width = 800, height = 1380, scale = "zoomStretch", xAlign = "center", yAlign = "center", imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, notification = { iphone = { types = { "badge", "sound", "alert" } } } } end

You’re running into what’s known as iPhone 4 compatibility mode. Apple used a pretty ugly hack to determine if an app was compatible with the iPhone 5 or not. You had to include a certain file name Default-568h@2x.png in your main project folder if your app supported “tall” mode. The iPhone 6/6 plus (and thankfully the 7’s and 8’s haven’t changed) required an additional filename hack to keep iPhone 5 tall mode apps from stretching to fit the larger iPhone 6/6 plus screen sizes.  These were part of their Launch Image schema.

Apple realized the error of their ways and went to an Xcode Storyboard method to do Launch Images and you no longer need these hacks images with difficult to use names, instead you use Xcode to make a .storyboardc file and include that in your project.

Please see: https://docs.coronalabs.com/guide/distribution/launchFile/index.html

You have to do this now. If not Apple will reject your submission and you will end up with the effect you’re seeing.  

Rob

You’re running into what’s known as iPhone 4 compatibility mode. Apple used a pretty ugly hack to determine if an app was compatible with the iPhone 5 or not. You had to include a certain file name Default-568h@2x.png in your main project folder if your app supported “tall” mode. The iPhone 6/6 plus (and thankfully the 7’s and 8’s haven’t changed) required an additional filename hack to keep iPhone 5 tall mode apps from stretching to fit the larger iPhone 6/6 plus screen sizes.  These were part of their Launch Image schema.

Apple realized the error of their ways and went to an Xcode Storyboard method to do Launch Images and you no longer need these hacks images with difficult to use names, instead you use Xcode to make a .storyboardc file and include that in your project.

Please see: https://docs.coronalabs.com/guide/distribution/launchFile/index.html

You have to do this now. If not Apple will reject your submission and you will end up with the effect you’re seeing.  

Rob