问题描述
至少在stakoverflow,我已经检查了与此问题相关的所有问题/答案。但是没有任何成功,到目前为止,我的问题是 - 我创建了一个新的应用程序 - 目标IOS 7,我添加了我的launchimage和我的appIcon在image.xcassets文件夹中。
当我在模拟器上启动我的应用程序时,launchimae显示完美没有任何问题但是当我在我的iphone(iphone 5,IOS 7.1)上运行应用程序时,黑屏显示而不是launchimage
任何帮助或建议将被评估?
欢呼,
I have checked all the questions /answers related to this issue at least at stakoverflow .but without any success ,so far my issue is - I have created a new app - target IOS 7 and I have added my launchimage and my appIcon in the image.xcassets folder .when I launch my app on simulator the launchimae is showing perfectly without any issue but when I run the app on my iphone (iphone 5 , IOS 7.1) a black screen is showing instead of the launchimageany help or suggestions will be appriciated ?cheers,
推荐答案
问题在于你的形象。
您可以在Preview.app中打开图像,然后显示Inspector(⌘I
)并查看更多信息选项卡。错误的图像会显示以下信息:
The problem is in your image.You could open your image in Preview.app, then show the Inspector (⌘I
) and look at More Info tab. Wrong image will show you the following info:
并在设备上显示黑屏(但在模拟器中可以正常)。
正确的一个看起来像这样:
and will result a black screen on the device (but will be ok in the Simulator).And the right one shood look like that:
我不能说如何在Photoshop中修复错误的图像。我发现了一个非常难看的解决方案:
I can't say how to fix wrong images in Photoshop. I found quite an ugly solution:
- 在PS中打开错误的png;
- 找到并打开正确的png在另一个标签中(确保画布大小合适);
- 选择错误的png中的整个图像并复制它;
- 粘贴将复制的图像转换为正确的png文件;
- 执行
另存为...
命令并用新的图像替换错误的图像。
- open wrong png in PS;
- find and open correct png in another tab (make sure the canvas is of right size);
- select the whole image in the wrong png and copy it;
- paste the copied image into correct png file;
- perform
Save As...
command and replace your wrong image with the new one.
这篇关于IOS 7启动图像,仅在设备上显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!