0

I recently upgraded my apps built with Storyboard using the previous iPhone 5 frame rectangles to work in native resolutions iPhone 6/6+ following the instructions provided in this SO answer.

However, I am encountering a curious issue where the app would be fully native in iPhone 6/6+, but would have black bars appear on top and bottom when running in iPhone 5 (on both simulator and device).

I have tried by pinning all aspect of the view (when possible) to hug all corners of the view, but this still occurs. I am running everything on XCode 6.1.


iPhone 6

enter image description here

iPhone 5/5S screen with black bars

enter image description here

Community
  • 1
  • 1
daspianist
  • 5,336
  • 8
  • 50
  • 94
  • Do you have a launch image set for 4 inch devices? Afaik that's how iOS knows in which "mode" to run the app. – muffe Oct 29 '14 at 16:46
  • Thanks for commenting @muffe2k. I used the `LaunchScreen.xib` as recommended, and there doesn't seem to be an option to set multiple xibs to work with the different resolutions. Is there a step that I am missing here? Thanks again. – daspianist Oct 29 '14 at 16:47
  • 3
    If your app supports iOS versions below 8.0, you still need static launch images for devices capable of running pre-8.0 versions (e.g. iPhone 5, iPhone 4s). – Ethan Holshouser Oct 29 '14 at 16:49
  • Thanks Ethan. Upvoted and great point. – daspianist Oct 29 '14 at 16:51

0 Answers0