【发布时间】:2011-11-09 15:59:35
【问题描述】:
我有一个可以在 iPhone 模拟器/设备上完美运行的 iPhone 应用。
它以 iPhone 分辨率和 iPhone 2X 分辨率运行(即我没有为 iPad 添加任何根视图控制器)。
问题是应用程序在 iPad 模拟器上运行良好,但在 iPad 设备上打开时,屏幕变黑然后应用程序退出。
你认为这个问题的原因是什么?
【问题讨论】:
-
模拟器不区分大小写。这些设备区分大小写。这会导致你的问题吗?
-
但它在 iPhone/iPod 设备上运行良好
-
我只是在猜测。你会加载不同的 iPad 图片吗?你试过视网膜和旧 iPhone/iPod 吗?
-
这是完全相同的应用程序,我不检查 iPad 的任何代码部分。它适用于 iPhone (Retina) 模拟器。我不知道如何添加旧模拟器。
Please note that, the simulator states that it is an iOS Simulator - iPad / iOS 4.3.2 (8H7) but the device is iPad 2 GSM (4.3.3), does this matter? -
加载初始屏幕后,我会在代码中添加一些调试点,看看为什么它没有出现在屏幕上。然后从 xcode 在 iPad 上以调试模式运行它。
标签: ios ios-simulator ipad-2