问题
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:
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 -
Goto Xcode > Product > Clean
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)
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