1

Recently I've upgraded to XCode 7 and have been having some trouble with screen sizes on my application, mainly black bars the appear at the top and bottom of the screen.

I've read through similar threads and implemented the fixes suggested which was adding a launch screen image and that worked for my iPhone 6's size but when I try running the simulator for the iPhone 6+ the black bars at the top and bottom of the screen are still there.

Also the screen wont resize for smaller versions either and parts get cut off or go off screen.

Any help would be greatly appreciated, thanks!

Asleepace
  • 3,466
  • 2
  • 23
  • 36
  • I suggest replacing your launch image with a launch storyboard, and tell us more about how your app is written; do you use autolayout? – Paulw11 Aug 02 '16 at 21:12
  • I tried using a launch storyboard and that fixed the problem on my iPhone 6 but on the 6+ it still shows the black bars. I am not using autolayout either. – Asleepace Aug 02 '16 at 22:08

1 Answers1

0

I ran into this problem last week updating an old app. Adding a launch screen image won't entirely solve it. Instead, you need to create a new launch screen.storyboard (File -> New -> File -> User Interface Tab (on the left) -> Launch Screen

Then in your project settings, set your launch screen file to the .storyboard file you just created. This should automatically fix the black bars.

Hayden Holligan
  • 1,822
  • 2
  • 19
  • 26
  • Ok I just tried that and it fixes the bars on the regular iPhone 6 but not the 6+. Thanks for the in depth tutorial anyways, at least it fixes part of the problem. – Asleepace Aug 02 '16 at 22:17
  • Wait it seems to work fine on actual device but not on simulator, maybe that was the issue. Is this common? – Asleepace Aug 02 '16 at 22:19
  • I wouldn't say common, but iphone simulators definitely aren't known for working perfectly all the time. Out of curiosity, try deleting the app on the simulator and re-running – Hayden Holligan Aug 02 '16 at 22:21
  • YES IT WORKS!!! Thanks sorry for the misunderstanding that actually really helped! – Asleepace Aug 02 '16 at 22:23
  • It works on the simulator now? – Hayden Holligan Aug 02 '16 at 22:25
  • Yes it works on the simulator, also it used to resize everything from the 5 to work on the 6 screen size but now it doesn't?! – Asleepace Aug 03 '16 at 21:16