本文介绍了iOS 9启动画面为黑色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到iOS9后,我的应用程序的启动画面都是纯黑色。

My apps' splash screens are all plain black after upgrading to iOS9.

有人知道这是为什么吗?他们中的一些人正在使用.xib启动画面,有些正在使用图像,但现在他们都只是黑色。是否必须使用Xcode 7构建应用程序才能在iOS9中使用启动画面?有没有人看过一些关于这是否是Apple的改变的文件?

Does anybody know why this is? Some of them are using a .xib splash screen and some are using images, but they're all just black now. Does an app have to be built with Xcode 7 for the splash screen to work in iOS9? Has anyone seen some documentation on whether this is an intended breaking change from Apple?

谢谢!

更新:再次查看应用程序似乎我的旧版应用程序只有启动图像且没有.xib仍然正确显示,因此问题似乎与启动屏幕有关.xib

UPDATE: Looking through the apps again it seems my older apps, which only had a Launch image and no .xib are still displaying correctly, so the issue seems related to the launch screen .xib

UPDATE2:
在评论中指出 hagi ,重新安装完全相同的二进制文件后,它再次开始工作因此原因可能是每当应用程序安装并存储在某处时从xib生成启动映像,然后在升级到iOS9时出于某种原因(最有可能是意外的Apple漏洞),生成的映像被清除,并且应用程序最终没有飞溅。这就是为什么老式的发布图像仍然安全且不受此影响的原因,因为它们已经被应用到应用程序中。

UPDATE2:As hagi pointed out in the comment, after re-installing the very same binary it starts working again so the cause is probably that launch images are generated from the xib whenever the app is installed, and stored somewhere, and then when upgrading to iOS9, for some reason (unintended Apple bug most likely), the generated images are cleared, and the app ends up with no splash. And that's why the old-fashioned launch images are still safe and not affected by this, cause they're already baked into the app.

我会将其报告为对Apple的错误。

I'll report it as a bug to Apple.

推荐答案

我更新到iOS 9后出现同样的问题。从App Store重新安装应用程序似乎解决这个问题。我想,这是一个iOS 9小故障。

Same problem here after I updated to iOS 9. Re-installing the app from the App Store seems to solve the problem. I guess, it's an iOS 9 glitch.

这篇关于iOS 9启动画面为黑色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 00:17