【问题标题】:iOS 9 black screen on first launchiOS 9 首次启动时黑屏
【发布时间】:2015-09-19 06:44:43
【问题描述】:

我有一个 iOS8 应用程序,在 Xcode 7.0 (7A218) 中运行后,我在首次启动时出现黑屏。但我之前看到过启动屏幕。我还在控制台中看到了警告:

Sep 19 09:36:56  GestureKeyboard[2640] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

视图控制器

import UIKit

class ViewController: UIViewController {
    @IBOutlet var imageView : UIImageView!
    @IBOutlet var label : UILabel!
}

【问题讨论】:

    标签: xcode swift swift2 xcode7


    【解决方案1】:

    在 Xcode 6 / iOS 8 中引入了使用故事板作为启动屏幕,所以我猜如果你的目标是 iOS7,你需要为每个设备分辨率提供单独的图像。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-07
      • 1970-01-01
      • 1970-01-01
      • 2014-09-19
      • 1970-01-01
      • 2015-12-14
      • 2014-09-18
      • 1970-01-01
      相关资源
      最近更新 更多