iPhone - a question about navigationControllers and viewController
<p>I have a project based on Xcode's NavigationController template. This template has a navigationController and a RootViewController. </p>

<p>From inside this RootViewController I push a view and this view pushes a third view. Something like:</p>

<p>NavigationController >> RootViewController >> ViewController 1 >>  ViewController 2</p>

<p>Now, from ViewController2 I want to access the navigationController and the navigationController.toolbar. </p>

<p>I know that every viewController has the navigationController property but my question do I have to do something when I push a new viewController so this variable (on the view that is being pushed) will have a valid reference to the correct ViewController or all pushed views will always have a valid reference to the navigationController?</p>

<p>The reason for my question is that I am trying to access the navigationController.toolbar, to make it invisible, and I am having no result.</p>

<p>thanks.</p>
