【问题标题】:App works on iphone ipad simulator but not ipad device: Black screen and then goes out应用程序适用于 iphone ipad 模拟器但不适用于 ipad 设备:黑屏然后熄灭
【发布时间】: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


【解决方案1】:

我只是在将 iPhone 应用升级为通用应用后遇到了这个问题。该应用程序在 iPhone 和 iPad 模拟器中运行,但是当我尝试在 iPhone 上运行它时,我遇到了与您一样的黑屏和应用程序退出。

修复是为了确保在 iPod/iPhone 部分和 iPad 部分的“项目目标摘要”页面上正确设置了“主情节提要”。出于某种原因,我的 iPod/iPhone 主故事板是空白的。修复后,我的应用开始工作了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-27
    • 1970-01-01
    • 2017-04-27
    • 2011-03-08
    相关资源
    最近更新 更多