UINavigationController hierarchy confusion


The second paragraph on page 270 has me slightly confused (right before the “Modal view controller styles” section).

It seems however, that within ItemsViewController, a new instance of UINavigationController is created, and that has the detail view set as its rootViewController. Unlike when we are selecting an existing item, and the detail view is pushed onto the stack.

Is there a reason we are creating a new UINavigationController in this case rather than just pushing the view onto the stack?


After reading further into the chapter, the hierarchy makes sense now.

The inter-family discussion in “For the More Curious” really clarified the point that the presentingViewController would point past the ItemsViewController and instead to its parent, the UINavigationController, but that wasn’t immediately obvious earlier in the chapter.