简体   繁体   English

应用程序启动后,iPhone模拟器显示空白屏幕

[英]iPhone simulator shows blank white screen after application launch

I am new to iPhone application development, and I am building a new calculator just to see how everything works. 我是iPhone应用程序开发的新手,我正在构建一个新的计算器,只是为了了解一切工作原理。 I completed my code, but when I run the application, it does not show anything on the simulator. 我完成了代码,但是当我运行应用程序时,它在模拟器上没有显示任何内容。 I have created a number pad, but the screen is blank (white) after the application launches. 我已经创建了一个数字键盘,但是在应用程序启动后屏幕为空白(白色)。 Can anyone give me a pointer, please? 有人可以给我指点吗? I am using Xcode 4.2 and deployment target is 5.0 我正在使用Xcode 4.2,部署目标是5.0

If you are using empty template for your project them make sure that you are correctly adding your view to window in appdelegate file in function named applicationDidFinishLaunching. 如果您正在为项目使用空模板,请确保将正确的视图正确添加到名为applicationDidFinishLaunching的appdelegate文件中的窗口中。

It can also happen when you target for iphone and using xid file related to ipad or another way. 当您以iphone为目标并使用与ipad相关的xid文件或其他方式时,也会发生这种情况。

hope it will help you and sorry for my bad english 希望对您有帮助,对不起我的英语不好

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

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