IOS 9 black screen on first launch

I have an iOS8 application, and after starting in Xcode 7.0 (7A218) I got a black screen when I first started. But before, I saw Launch Screen. Also I see that in the console:

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.

ViewController

import UIKit

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

enter image description here

enter image description here

+4
source share
1 answer

Using storyboards as a launch screen was introduced in Xcode 6 / iOS 8, so I assume that if you focus on iOS7, you will need to provide separate images for each resolution of the device.

0
source

Source: https://habr.com/ru/post/1608103/


All Articles