I’m adding new view controllers (scenes) via the interface builder. I drop them on the canvas and then create a new view controller subclass (NewViewController, this creates two fiels: NewViewController.h and NewViewController.m). I then set the “class” under the identity inspector to the newly added view controller (NewViewController).
Now when I run the app the initial scene has a button with a segue to the second scene (where NewViewController is the “class”) and it doesn’t load the new scene/view, its just black. Am I missing a step?
If I remove the class: NewViewController, and put it back to the initial view controller (ViewController) it displays the page just fine.
I’m following this guide
Remove the
loadViewmethod that Xcode adds for you in the view controller. This method is required when you build you views programatially but is not needed when using XIBs or Storyboards.