Launch Image does not show up in my iOS App

前端 未结 28 1564
逝去的感伤
逝去的感伤 2020-12-02 04:11

I want to get a simple launch screen to show in my app, built using Xcode 6.0.1.

I have added a launch screen in two ways: As an XIB (with the default name, LaunchSc

相关标签:
28条回答
  • 2020-12-02 04:46

    I just figured this out. My launch image was not showing up, I get a white screen when launching on a device (iPhone 6, 7+) or testFlight. Fix: Renamed "Landing_screen.png" to just "Landing_screen" removing .png part. The image icon in Xcode changed to white icon and in the launch screen storyboard the image appears as a question mark now. The Launch image now appears and not the white screen. My Setup: I am using Swift 3.1 with Xcode 8.3.1. In LaunchScreen.storyboard I added a simple image view and stretched the image to fit the view controller. I set auto layout constraints Top/Bottom/Leading/Trailing space to superview to 0.

    0 讨论(0)
  • 2020-12-02 04:46

    I encountered this bug also with my landscape-only app. Following carlodurso's solution works:

    1. tick the "Landscape" box
    2. drag and drop the image to the place.
    0 讨论(0)
  • 2020-12-02 04:50

    Removing "Launch screen interface file base name" from Info.plist file AND trashing "Launch Screen.xib" worked for me.

    0 讨论(0)
  • 2020-12-02 04:50

    I set up "LaunchImage" in my asset catalog and simply cleared the "Launch Screen" field et voila ! I had the launch images appear ...

    0 讨论(0)
  • 2020-12-02 04:51

    After several hours frustrated on this, I decided to use this way. It works for both iPhone and iPad (on Xcode 6.1)

    1. File >> New File >> User Interface >> Launch Screen
    2. Create new key/value: "Launch screen interface file base name"/"Your Launch Screen Name" in YourApp-Info.plist

    1 picture worths more than thousand words. Please look at below:

    File>>New File>> User Interface >> Launch Screen

    Create new key/value "Launch screen interface file base name"/"Your Launch Screen Name" in YourApp-Info.plist

    0 讨论(0)
  • 2020-12-02 04:52

    I tried opening a new project, and moving through the same steps you did to set a launch screen.

    By default, the .xib was set as "Launch Screen File," and the white screen with a label did show for half a second in the simulator.

    I then a "Launch Images Source" and set it to the Images.xcassets which generated with the background images I added to the project. (all good so far)

    Rerun the simulator and the launch images don't show...

    After deleting the specified "Launch Screen File" and a clean: Product -> Clean, from the top menu, the launch images finally show up.

    Maybe that will help?

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