xcode – 首次推出iOS 9黑屏

前端之家收集整理的这篇文章主要介绍了xcode – 首次推出iOS 9黑屏前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个iOS8应用程序,在 Xcode 7.0(7A218)中运行后,我在第一次启动时出现黑屏.但我之前看过Launch Screen.我也在控制台看到了警告:

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!
}

enter image description here

enter image description here

解决方法

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

猜你在找的Xcode相关文章