我的启动画面有时会保持黑色和空白(iOS 9.2,swift 2,Xcode 7.2)(My splash screen sometimes remains black and blank (iOS 9.2, swift 2, Xcode 7.2))

我创建的启动画面似乎有些问题。 我在LauchScreen.Storyboard中使用默认视图控制器。 当我在计算机的模拟器上运行我的应用程序时,我的视图控制器中的图像视图显示,但我的标签没有。 但是,当我在我的实际手机上运行我的应用程序时,只显示一个空白的黑屏。

但是,在某些情况下,当我对代码进行一些完全不相关的更改时,会出现闪屏! 但最终,在调整了一些代码之后......它又回到那个愚蠢的空白屏幕上了:(

这似乎是一个奇怪的问题,我甚至不确定我的项目中应该分享哪些代码,以便更容易获得帮助。 还有其他人有这样的问题吗? 你能告诉我我应该分享哪些项目代码或信息,以便我的问题可以解决吗?

或者,这是否只是Xcode中的一个错误? 当应用程序进入应用程序商店时,我不需要担心什么?

谢谢!

Something seems to be wrong with the splash screen that I have created. I am using the default view controller in LauchScreen.Storyboard. When I run my app on my computer's simulator, the image views in my view controller show up, but my label does not. However, when I run my app on my actual phone, only a blank, black screen shows up.

However, in some situations, when I make some completely unrelated changes to my code, the splash screen shows up! But eventually, after tweaking the code some more... it goes back to that dumb, blank screen >:(

This seems like such a strange issue, and I'm not even sure what code from my project I should share to make it easier to receive help. Has anyone else had any issues like this? Can you maybe tell me what project code or information I should share so that my issue can be solved?

Or, is there any chance that this is simply a bug in Xcode? Something I don't need to worry about when the app goes into the app store?

Thank you!

最满意答案

这个问题似乎是一个bug,但这是我的建议:

确保Xcode完全是最新的 清理您的项目 尝试在设备上运行(您的问题可能仅限于模拟器) Go Project - > General - > App Icons and Launch Images - >将“Launch Screen File”设置为“LaunchScreen.storyboard”

This problem seems to be a bug, but here are my suggestions:

Make sure Xcode is completely up to date Clean your project Try running on a device (your issue might be limited to the simulator) Go Project -> General -> App Icons and Launch Images -> set "Launch Screen File" to "LaunchScreen.storyboard"我的启动画面有时会保持黑色和空白(iOS 9.2,swift 2,Xcode 7.2)(My splash screen sometimes remains black and blank (iOS 9.2, swift 2, Xcode 7.2))

我创建的启动画面似乎有些问题。 我在LauchScreen.Storyboard中使用默认视图控制器。 当我在计算机的模拟器上运行我的应用程序时,我的视图控制器中的图像视图显示,但我的标签没有。 但是,当我在我的实际手机上运行我的应用程序时,只显示一个空白的黑屏。

但是,在某些情况下,当我对代码进行一些完全不相关的更改时,会出现闪屏! 但最终,在调整了一些代码之后......它又回到那个愚蠢的空白屏幕上了:(

这似乎是一个奇怪的问题,我甚至不确定我的项目中应该分享哪些代码,以便更容易获得帮助。 还有其他人有这样的问题吗? 你能告诉我我应该分享哪些项目代码或信息,以便我的问题可以解决吗?

或者,这是否只是Xcode中的一个错误? 当应用程序进入应用程序商店时,我不需要担心什么?

谢谢!

Something seems to be wrong with the splash screen that I have created. I am using the default view controller in LauchScreen.Storyboard. When I run my app on my computer's simulator, the image views in my view controller show up, but my label does not. However, when I run my app on my actual phone, only a blank, black screen shows up.

However, in some situations, when I make some completely unrelated changes to my code, the splash screen shows up! But eventually, after tweaking the code some more... it goes back to that dumb, blank screen >:(

This seems like such a strange issue, and I'm not even sure what code from my project I should share to make it easier to receive help. Has anyone else had any issues like this? Can you maybe tell me what project code or information I should share so that my issue can be solved?

Or, is there any chance that this is simply a bug in Xcode? Something I don't need to worry about when the app goes into the app store?

Thank you!

最满意答案

这个问题似乎是一个bug,但这是我的建议:

确保Xcode完全是最新的 清理您的项目 尝试在设备上运行(您的问题可能仅限于模拟器) Go Project - > General - > App Icons and Launch Images - >将“Launch Screen File”设置为“LaunchScreen.storyboard”

This problem seems to be a bug, but here are my suggestions:

Make sure Xcode is completely up to date Clean your project Try running on a device (your issue might be limited to the simulator) Go Project -> General -> App Icons and Launch Images -> set "Launch Screen File" to "LaunchScreen.storyboard"