I am developing a game in iOS on XCode. I have several SKScenes each associated with a UIViewController class. So in each of the view controller\'s viewDidLoad, I create
<
Try implementing the loadView method on your custom ViewController, like so:
override func loadView() {
self.view = SKView(frame: CGRect(x: 0, y: 0, width: 320, height: 480))
}
This is what Apple's documentation states:
This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.