iOS启动图片不会显示在iPhone或模拟器上,但可以在iPad上使用 [英] iOS launch image won't show up on iPhone or simulator, works on iPad
问题描述
无论我是使用资产目录还是传统方式,我都遇到了这个问题.在所有情况下都是Xcode 5.1.1.
I'm having this problem whether I use asset catalogs or the old-school way. Xcode 5.1.1 in all cases.
我已经收到所有图像,并且Xcode并没有给我您缺少568-h"错误或其他任何信息,但是当我启动该应用程序时,我的启动图像仅显示在iPad上,而不显示在iPhone上.这在模拟器和设备上发生.我已经完成了全新安装,清除了DerivedData等.
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.
我还检查了我使用资产目录时,info.plist与启动映像没有任何关系,但是不,那里没有任何内容.
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?
推荐答案
-
删除当前的LaunchImage并创建一个新的LaunchImage.拖动图像首先添加到您的项目中,然后替换为启动图像用于应用程序图标.Images.xcassets>选择编辑器>新建启动图像
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
单击后检查您的LaunchImage首选项-
Check your LaunchImage preferences after you click on it -
转到Xcode>产品>清洁
Goto Xcode > Product > Clean
由于已知iPhone模拟器可以缓存内容,因此请继续使用iPhone模拟器>重置内容和设置(或从iPhone模拟器中手动删除应用程序)
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)
不要忘记检查您的部署设置(目标">常规">部署信息").通用应用程序?现在,在不同的iOS模拟器中运行您的项目并检查警告!
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!
这篇关于iOS启动图片不会显示在iPhone或模拟器上,但可以在iPad上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!