简体   繁体   English

iPhone模拟器中的白色空白屏幕和加载到iPhone中的黑色空白屏幕

[英]White blank screen in iPhone simulator and Black blank screen when loaded into iPhone

When I run my app on the simulator, every time a white blank screen would be generated. 当我在模拟器上运行我的应用程序时,每次都会生成白色空白屏幕。 but after I black iPhone button on the bottom to exit the app, the views will then be visible after you re-enter the app. 但是在我按下底部的iPhone黑色按钮退出该应用程序之后,重新输入该应用程序后,这些视图才可见。 then the app run as usual. 然后该应用将照常运行。

But the situation is different when I load it into my iPhone. 但是,当我将其加载到iPhone时,情况就不同了。 Only BLACK blank screen can be seen into the app. 在应用程序中只能看到BLACK黑屏。 after I exit the app and re-enter it, still nothing can be seen, and the app would automatically exit, too. 我退出应用程序并重新输入后,仍然看不到任何东西,该应用程序也会自动退出。

I dunno why it would be like that as simulator just simulate the real iPhone. 我不知道为什么模拟器会像真实的iPhone一样那样。

Here is some information: 这里是一些信息:

iOS version of my iPhone: iOS 5 XCode version: XCode 4.2 iPhone的iOS版本:iOS 5 XCode版本:XCode 4.2

Hope someone can help me. 希望可以有人帮帮我。 Thanks a lot. 非常感谢。

Make sure that your Base SDK is as high or higher than your current version. 确保您的基本SDK等于或高于当前版本。 Change it in your target settings and your project settings. 在目标设置和项目设置中进行更改。 Also change your compiler to Apple LLVM and your debugger (under edit scheme) to LLDB. 另外,将编译器更改为Apple LLVM,将调试器(在编辑方案下)更改为LLDB。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM