IOS 7启动图像,仅在设备上显示黑屏 [英] IOS 7 launch image, displaying black screen on device ONLY

查看:312
本文介绍了IOS 7启动图像,仅在设备上显示黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

至少在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 launchimage any 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:


  1. 在PS中打开错误的png;

  2. 找到并打开正确的png在另一个标签中(确保画布大小合适);

  3. 选择错误的png中的整个图像并复制它;

  4. 粘贴将复制的图像转换为正确的png文件;

  5. 执行另存为... 命令并用新的图像替换错误的图像。

  1. open wrong png in PS;
  2. find and open correct png in another tab (make sure the canvas is of right size);
  3. select the whole image in the wrong png and copy it;
  4. paste the copied image into correct png file;
  5. perform Save As... command and replace your wrong image with the new one.

这篇关于IOS 7启动图像,仅在设备上显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆