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

后端 未结 14 1307
野趣味
野趣味 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:57

    I had a similar issue on an iPod. To fix this, I replaced

    <key>UILaunchStoryboardName~ipad</key>
    <string>LaunchScreenIpad</string>
    <key>UILaunchStoryboardName~iphone</key>
    <string>LaunchScreenIphone</string>
    

    with

    <key>UILaunchStoryboardName~ipad</key>
    <string>LaunchScreenIpad</string>
    <key>UILaunchStoryboardName~iphone</key>
    <string>LaunchScreenIphone</string>
    <key>UILaunchStoryboardName~ipod</key>
    <string>LaunchScreenIphone</string>
    

    in Info.plist.

    0 讨论(0)
  • 2020-11-22 11:59

    I'm using xcode 7.2 . At first, I created a LaunchScreen.storyboard file, as Potassium Permanganate suggested, and it worked! However, I didn't want a launch screen, so I tried setting Main.storyboard as Launch Screen File and it did the trick!

    0 讨论(0)
  • 2020-11-22 12:06

    When you migrate your app from earlier version of xCode to xCode 6 or xCode 7, you will face this issue.

    For iOS 7 and earlier, developers need to provide separate launch images for all screen sizes, resolutions and orientations their app supported.

    In Xcode 6 or later, there is another option. You can specify a storyboard whose initial view controller will then be used as the app’s launch screen. Use below steps:

    • Create a blank storyboard file named LaunchScreen.storyboard.

    • Go to your target settings and, on the "General" tab, select the storyboard as your Launch Screen File in "App Icons and Launch Images" section. Xcode will add a corresponding UILaunchStoryboardName key to your app’s Info.plist. When this key is present, Xcode will prioritize it over any launch images you might have set.

    • Add some subviews to newly created storyboard's view and position them with constraints. When you launch the app on a device, the OS should use the scene as the launch screen.

    Delete the older app from simulator and clean the project.

    Cheers :-)

    0 讨论(0)
  • 2020-11-22 12:07

    Don't Do anything that are described in earlier answers...

    To show view Controller follow the following single step

    Step 1 : Add the splash Screen for iPhone and iPad.

    After this this error will not come again.

    0 讨论(0)
  • 2020-11-22 12:11

    I have same issue in my app . In my app i have multiple targets added to project . If i use launch storyboard solution then i can see full screen but in my case my Lunch image looks blurred and stretched on iPhone 4 . To come out from this issue I have used LaunchImage asset solutions . After this still I am facing same issue .I have tried all above solutions, At end I found my png images don't include ALPHA resolutions . After adding new images ,i can see full screen images .

    0 讨论(0)
  • 2020-11-22 12:12

    My App does not use a launch image. Setting the "Launch Screen File" to my "main.storyboard" file fixed the issue for me.

    This setting can be found under "Target->General->App Icons and Launch Images"

    Use the following link for more information: http://oleb.net/blog/2014/08/replacing-launch-images-with-storyboards/

    0 讨论(0)
提交回复
热议问题