Interface Builder - Loaded "xxx" nib but the view outlet was not set
1 min read

Interface Builder - Loaded "xxx" nib but the view outlet was not set

I have been playing with Xcode and Interface Builder by doing assignments from the iPhone App Development Course from Stanford.

I had an error on one of the assignments and eventually figured it out, here’s the step by step instructions with snapshots.

error

The error: "loaded the XXX nib but the view outlet was not set."

  • Open the .xib file that is causing the problem in Interface Builder.
  • Check that the File’s Owner class is the correct ViewController.
viewcontroller
  • In the inspector window (right sidebar) click on the tab with the blue circle and arrow in it.
  • You will see a table with Outlets. Click on the circle of VIEW and drag it to the VIEW icon.
Changing the view controller

Afterwords it should be set to view VIEW

  • Save everything in Interface Builder, and you should be good.