Interface Builder – Loaded “xxx” nib but the view outlet was not set

January 4, 2012 — Leave a comment

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.

Mike

Posts Twitter Facebook

My name is Michael Le, and I am a web developer.

No Comments

Be the first to start the conversation.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.