iPad Application shows app icon as launch screen i

2019-02-02 04:54发布

问题:

In iPad iOS 10 Application shows app icon as launch screen / Splash screen if we don't provide any launch screen.

I had not set any launch screen or image.

And LaunchImage asset is blank.

It looks weird.

see

Is it bug ? or feature?

FYI

Application is not in App Store it's enterprise app.

回答1:

I was also getting this issue in my app for iPad and I found solution of this.

Solution: I added a launchscreen.xib in my app and select this file in to LaunchScreen section of 'General' section in target window.

I did not add launch images of iPad devices, may be this is the reason of issue.

So now this issue has resolved. :)



回答2:

This is probably due to the animation that is used to give the "zoom" effect from the app icon when the user launches your app.

You will notice that the launch image animates it's alpha from 0.0 to 1.0 as the user opens the app.

In your case, you have not specified an image so there is nothing to show. This is something that isn't supported as your app would be rejected if you tried to submit to iTunes Connect. You should always ensure that you have a launch image (or nib) set, even if it's just a plain white image.


You could probably try filing a bug report about it but my expectation will be that you are just told to add image resources to the asset in the Assets Catalog.



回答3:

This is the launch screen issue by sure. Set launch screen in .plist file. It should be solved.

For iOS less than 9.0 you can set image as launch screen and for others you need launch screen as XIB.



回答4:

Maybe you have to support iPad target at "Targeted Device Family" of your Build Settings

Settings at "Targeted Device Family" is like these. 1 is iPhone only 2 is iPad only 1,2 is iPhone/iPad Both.

In my case, if i choose "1,2", app icon launch image has gone.



回答5:

Just in case anyone's still struggling with this. My problem was an entirely different thing. For me the "Slow Animation" were on in the iOS simulator. I probably had accidentally hit CMD + T. You can turn it off from iOS Simulator menu Debug -> Slow Animation.

I hope it helps someone.



回答6:

We can add a launch screen from the new file menu and then set it in the general settings on the application.

or you can also add images in images.xcassets with the name Launchimage.



回答7:

You need to add images to project with following names :

Notes : All are not required you need to add per requirement

  320x480(2x) ->   640x960: Default@2x~iphone.png
  320x568(2x) ->  640x1136: Default-568h@2x~iphone.png
  375x667(2x) ->  750x1334: Default-667h@2x~iphone.png
  414x736(3x) -> 1242x2208: Default-736h@3x~iphone.png
  768x1024(1x) ->  768x1024: Default-Portrait~ipad.png
  1024x768(1x) ->  1024x768: Default-Landscape~ipad.png
  768x1024(2x) -> 1536x2048: Default-Portrait@2x~ipad.png
  1024x768(2x) -> 2048x1536: Default-Landscape@2x~ipad.png