UINavigationItem in UITableViewController with Interface Builder
Hi folks.
I'm using a NavigationController to navigate between different views.
Every view has his own xib file (created and setup automatically by xcode checking ''with XIB for user interface'' during file creation procedure).
The root controller is a UITableViewController.
I'd like to customize the navigation bar by adding right and left buttons.
I know how to do it programmatically, apple site and doc are full of examples.
What I would like to do is to do the same customization with Interface builder.
I simply cannot find a proper way to do it.
I added a Navigation Item to the root controller xib. I noticed that it came with 4 outlets (back, left, right and title views) so I added two more Bar Button Item to the xib and hoocked them up with the Navigation Item outlets (left and right).
Now... off course these buttons don't show up, and it's probably because I didn't connect the Navigation Item to anything... and that's the point! How do I connect my Navigation Item in interface builder with the navigationItem property of the TableViewController (file owner) ?
Is my procedure correct (and simply needs this final step) or is it completely wrong ?
I refuse to believe that there's no way to do such a setup entirely in Interface Builder...
Again, I know that doing that in code is simple, I'd just like to do it entirely in Interface Builder. Is that possible?
|