Why it keeps being blank
I just found out that NavigationControllers have the property topViewController; this is the viewcontroller that is shown (it's top of the stack).
Its a read-only property though. I then noticed that there are two options:
1) create the NavigationController from code and use initWithRootViewController and refer to the ViewController that you want to have shown.
// look at the code example at page 32 (creating a navigation contr.) in the "View Controller Programming guide"
2) create the root controller - just like GroupController as stated in the example on page 32 - and then PUSH this rootcontroller to the Navigationcontroller (animated:NO) that is already existing (because it was created using IB).
btw: i moved my Navigationcontroller to the first XIB file so i can push and pop views centrally instead from the second XIB. i then created an IBOutlet so i could refer to the Navigationcontroller and push the view.
hope this helps
|