升级到 iPhone 3.0 sdk,现在模拟器显示空白屏幕 [英] Upgrade to iPhone 3.0 sdk and now simulator shows blank screen

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

问题描述

我有一个使用 UITabBarController 的 iPhone 应用程序,它包含两个 UINavigationControllers,每个 UINavigationControllers 又包含一个或多个 TableViewControllers(实际上,自定义的 UIViewControllers 实现 UITableViewDelegate 和 UITableViewDataSource.)在启动时,它显示 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.在 Info 中,我将 Base SDK 设置设置为 iPhone Simulator 3.0.现在,当我在模拟器中启动应用程序时,我只看到一个空白的白色屏幕,顶部有状态栏.我的应用程序没有任何迹象.但是,当我退出应用程序时,缺少的 tableview 会在播放退出动画时短暂显示.此外,在空白的白色屏幕上,我仍然可以单击导航按钮所在的位置,然后发现当我退出应用程序并短暂显示丢失的屏幕时,该导航已将我带到另一个屏幕.所以按钮可以工作,并且大概 tableviewcells 在那里,他们只是看不到.

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,现在模拟器显示空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆