title: When programatically creating a ViewController, how can I set its view to be of type SKVIew?
body: <p>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 </p>
  
  <pre><code>SKView *skView = (SKView *)self.view
  SKScene * scene = [whateverSKScene sceneWithSize:skView.bounds.size]
  [skView present scene]
  </code></pre>
  
  <p>I want to avoid the storyboard. However, when I presentViewController from the first view controller to the next, the app crashes at the line "[skView present scene]" because it thinks the new view controller's view is still UIView ('-[UIView presentScene:]: unrecognized selector sent to instance).</p>
  
  <p>How can I fix this? Specifically, when creating the 2nd view controller (programatically), how can I change its view to be of type SKview not UIview?
  (I should note I want the scenes to be 1:1 with view controllers because almost all of them are popups like a pause-menu pop up over game play or settings pop up etc)</p>