Apple docs incorrect? - IB & Navigation
First the question:
As far as I understand, the xib File's Owner needs to be set to the class of the view controller. All the I/O needs to go through the File's Owner object, correct?
Here's the background to my confusion.
Document:
"Interface Builder User Guide"
Section:
"Configuring the Views for Additional Navigation Levels"
This section describes how to add subviews.
1. Create a new nib file using the Cocoa Touch View template.
2. Add a view controller object to the top level of the nib file.
3. Set the class of the view controller to your custom class, as described in “Setting the Class of an Object” (page 117).
Then they go on about adding a View Controller and embedding items into it.
|