现在模拟器显示空白屏幕

现在模拟器显示空白屏幕

本文介绍了升级到iPhone 3.0 SDK,现在模拟器显示空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用UITabBarController的iPhone应用程序,该应用程序包含两个UINavigationControllers,每个UINavigationControllers包含一个或多个TableViewControllers(实际上是实现UITableViewDelegate和UITableViewDataSource的自定义UIViewControllers).启动时,它将显示UITabBarController以及其中一个显示的表格视图.一切都被编码; Interface Builder并未用于制作任何UI东西.它是用SDK 2编写的.在sdk 2中运行良好.

I have an iPhone app that uses an UITabBarController, which contains two UINavigationControllers, each of which in turn contains one or more TableViewControllers (actually, customized UIViewControllers implementing UITableViewDelegate and UITableViewDataSource. ) On launch, it displays the UITabBarController with one of the tableviews displayed. Everything is coded; Interface Builder was NOT used to make any of the UI stuff. It was written in SDK 2. It worked fine in sdk 2.

我最近更新为SDK 3.0.在信息"中,我将基本SDK"设置设置为"iPhone Simulator 3.0".现在,当我在Simulator中启动应用程序时,只看到一个空白的白色屏幕,状态栏位于顶部.没有我的应用程序的迹象.但是,当我退出该应用程序时,正在播放退出的动画时,缺少的tableview会短暂显示.另外,在空白的白色屏幕上,我仍然可以单击导航按钮应位于的位置,并发现当我退出应用程序且缺少的屏幕短暂显示时,该导航将我带到了另一个屏幕.这样按钮就起作用了,大概是tableviewcell在那里了,只是看不见.

I recently updated to SDK 3.0. In Info, I set the Base SDK setting to iPhone Simulator 3.0. Now, when I launch the application in Simulator, I see only a blank white screen with the status bar at the top. No signs of my app. However, when I exit the app, the missing tableview displays briefly as the exiting animation is playing. Also, on the blank white screen I can still click where the navigation buttons should be and find that, when I exit the app and the missing screen briefly displays, that navigation has taken me to another screen. So the buttons work, and presumably the tableviewcells are there, they just cannot be seen.

有人看见过这样的东西吗?有谁知道导致它的原因以及如何解决它?我注意到示例应用程序(例如SQLiteBooks)在更新到SDK 3.0时似乎可以正常工作.我的应用程序在使用的技术上与SQLiteBooks并没有太大区别,除了如上所述,我不使用Interface Builder.

Has anyone seen anything like this? Does anyone have any idea what is causing it and how I can fix it? I noticed that sample apps, such as SQLiteBooks, seem to work fine when updating to SDK 3.0. My app isn't very much different from SQLiteBooks in terms of technologies used, except that, as I said above, I do not use Interface Builder.

推荐答案

在IB中,单击窗口",并确保选中启动时可见".不是我的,我的应用程序在选中该框后终于出现了.

In IB, click "Window" and make sure "Visible At Launch" is checked. Mine wasn't and my app finally appeared after checking that box.

这篇关于升级到iPhone 3.0 SDK,现在模拟器显示空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 21:19