Content not filling screen on iPhone 6 (Solved)

[Edit - this is SOLVED. I'm keeping this here for posterity, in case others have the same issue when converting older Xcode projects.]


I have an existing project that was originally created for iPad only, circa Xcode 4.


I'm currently building with Xcode 7 Beta 1. Deployment target is 8.3.


I have set the "Deployment Info" to "Universal", and have enabled Auto Layout and Size Classes.


The apps runs normally on the iPad.



Problem:


When running the app on in iPhone 6 (running 8.3), all content (including the Status Bar and any Navigation Bar) appears to occupy an area about the size of an iPhone 4, centered vertically within the screen. There are black bars on the top and bottom.


i.e. the screen is effectively letterboxed.


To test that it was not a problem with the View Controllers themselves (despite the obvious issue with the Status Bar being out of place), I dragged out a new Navigation Controller from the Object Library, and set it as the Initial View Controller. Result: same thing. (Letterboxing occurs.)


However, if I create a New Project and run it on the device, the content displays normally, occupying the entire screen. Thus the problem only occurs to my existing project.


Thanks for any suggestions.



SOLUTION


1) Add a Launch Screen:


New File -> iOS -> User Interface -> Launch Screen


2) Set the name of your new launch screen in:


[Your Project] -> General -> Launch Screen File

Hate to burst your bubble but this has been a requirement since the iPhone 5.

No bubble was burst.


I was simply pointing out how the issue could be fixed for those people who didn't know.

Thank you! I've had an app that's been in the app store for 4 years and that I have constantly updated, and this problen never showed up until Xcode 7. I could not figure this out until I saw your post.

Yep – same for me. Obviously, a finished App needs launch screens, but they're among the last thing I add prior to shipping. Missing launch screens causing 3.5 letterboxing is an xCode 7 thing. Thanks for posting the question and answer.


You suggestion of using a Lanch Screen Storyboard is very good – it's much quicker than adding the various correctly sized PNGs.

This worked perfectly

Thank you so much

I had this problem and came to this page. Turns out it wasn't a launch screen issue. In the "General" tab of my project settings, my "Devices" was set to "iPhone." I switched to "Universal" and it fixed the issue.

I had similar issues and after confirming Launch Image sizes and adding a Launch Screen I still had the same problem. Ultimately it was fixed by checking 'Full Screen at Launch' on the MainWindow.xib.

Content not filling screen on iPhone 6 (Solved)
 
 
Q