Search code examples
iosxcodeuiviewautolayoutiphone-6

iPhone 6 - app does not fill screen


Most of my apps scale up when run on an iPhone 6, but for some reason one of my apps looks like this:

enter image description here

What would cause it to not just scale up and fill the screen?

EDIT: Here are some repro steps:

Create a new project (Single View). Turn off size classes and just use iPhone.

Make the background orange.

Add a yellow UIView subview at (20,20,280,200).

In Xcode you get this:

enter image description here

Now simulate on iPhone 6. You get this:

enter image description here

Why doesn't it just scale up and look normal?


Solution

  • Not sure why this is getting downvoted. It's a legitimate question. And here's the legitimate answer:

    Remove the "Launch Screen File" in Projects > General. Xcode 5 did not have this so older apps scale up automatically. Apps created with Xcode 6 get a default Launch Screen file created.

    Removing it will make your app scale up on iPhone 6.