iOS 9 Xcode 7 - Application appears with black bars on top and bottom

后端 未结 14 1294
野趣味
野趣味 2020-11-22 11:31

Installed the app on iPhone 6 iOS9 and here is what happened. Notice black bars on top and bottom. It works just fine on iOS8. How I can fix it?

I\'ve tried building

14条回答
  •  囚心锁ツ
    2020-11-22 11:51

    Did you migrate your app from an earlier version of Xcode? If so then Xcode is now making an assumption about your screen size and you need a way of indicating the actual screen size at run time.

    There are two ways:

    a) If you use a launch screen.

    You are missing a LaunchScreen.storyboard file. Create a LaunchScreen.storyboard file and add it to your project.

    b) If you don't use a launch screen.

    Go to your Target's settings and choose General, then App Icons and Launch Images. Now set "Launch Screen File" to your "main.storyboard" (or another storyboard if appropriate)

提交回复
热议问题