xcode – 首次推出iOS 9黑屏
发布时间:2020-12-14 17:18:39 所属栏目:百科 来源:网络整理
导读:我有一个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 back
我有一个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! } 解决方法
在Xcode 6 / iOS 8中引入了故事板作为启动屏幕,所以我猜测如果你的目标是iOS7,你需要为每个设备分辨率提供单独的图像.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |