iOS launch image won't show up on iPhone or simulator, works on iPad

南楼画角 提交于 2019-12-10 18:08:00

问题


I'm having this problem whether I use asset catalogs or the old-school way. Xcode 5.1.1 in all cases.

I've got all my images in, and Xcode does not give me the "you're missing the 568-h" error or anything, but when I launch the app, my Launch image only shows on iPad, not iPhone. This happens on the simulator AND device. I have done clean installs, cleaned out DerivedData, etc.

I also checked that my info.plist doesn't have anything to do with Launch images when I use asset catalogs, but nope, nothing in there.

Attaching screenshots to show how I have it set up with either method, any thoughts?


回答1:


  1. Delete your current LaunchImage and create a new one. Drag the images to your project first and then substitute launch images for app icons. Images.xcassets > Choose Editor > New Launch Image

    Check your LaunchImage preferences after you click on it -

  2. Goto Xcode > Product > Clean

  3. Since, iPhone simulator is known to cache stuff, go ahead to iPhone Simulator > Reset Content and Settings (or manually delete the app from your iPhone simulator)

  4. Don't forget to check your deployment settings (Target > General > Deployment Info). Universal app? Now, run your project in different iOS simulators and check for warnings!



来源:https://stackoverflow.com/questions/23788688/ios-launch-image-wont-show-up-on-iphone-or-simulator-works-on-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!