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.
- Open the .xib file that is causing the problem in Interface Builder.
- Check that the File’s Owner class is the correct 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.
- Save everything in Interface Builder, and you should be good.