One app gets wrong screen size for iPhone 6 on the device, but not on the simulator

I’m working on my second app, on the simulator it looks fine. So I bought an iPhone 6, loaded it up, and it looks like it’s on an iPhone 4 screen for some reason. I put in some print statements, and it says the screen width is 1152!

And yet my first app looks just fine on the iPhone 6, even after I rebuilt it with the 2511 build.

The second app is based off of the code from the first, except that I’m using Composer on #2 instead of Storyboard. config.lua and buildsettings are identical.

Any ideas how this could happen? Is there some setting I need to do with Composer to make it recognize the iPhone 6?

Hi @mutatron,

I can’t think of any reason why this would occur for the reasons you describe (Storyboard vs. Composer). They are both just scene management libraries. Are you 100% sure that the second project is a clone of the first except for this difference?

Best regards,

Brent

Jey @Jedi,

I fixed the problem by adding default screens in all the recommended sizes. So I guess the real question is, why are those default screens not required in app #1? Anyway, they both work now, and if I upgrade app #1, I’ll know how to solve that problem if it comes up.

Hi @mutatron,

I can’t think of any reason why this would occur for the reasons you describe (Storyboard vs. Composer). They are both just scene management libraries. Are you 100% sure that the second project is a clone of the first except for this difference?

Best regards,

Brent

Jey @Jedi,

I fixed the problem by adding default screens in all the recommended sizes. So I guess the real question is, why are those default screens not required in app #1? Anyway, they both work now, and if I upgrade app #1, I’ll know how to solve that problem if it comes up.