title: UINavigationController and titleView
body: <p>My application fit inside a <code>UINavigationController</code>.
  Simply I setted up a <code>MyUIViewController</code> as <code>rootViewController</code> of <code>navigationController</code> and than I set up a <code>customTitleView</code> for the <code>navigationItem</code> of <code>myViewController</code> inside <code>viewDidLoad</code>.</p>
  <p>Now when I push a <code>newViewController</code> I expect to see the previous <code>customTitleView</code> (as described by Apple NavigationController reference) but it doesn't.</p>
  <p><strong>What's wrong?</strong></p>
  <p>A little part of code below and the Apple UINavigationController Reference</p>
  <p>&quot;If the new top-level view controller has a custom title view, the navigation bar displays that view in place of the default title view. To specify a custom title view, set the titleView property of the view controller’s navigation item.&quot;</p>
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      
      [self.navigationItem setTitleView:customTitleView];
  }
  </code></pre>
  <p>Maybe the &quot;default title view&quot; means &quot;nothing&quot;? I interpreted it as the previous titleView.</p>
  <h3>EDIT</h3>
  <p>I'm trying a work around but I have some other issues.
  The work around is:</p>
  <p>In every ViewController that I push inside the NavigationController I setup in viewDidLoad the titleView getting it from the rootViewController</p>
  <pre><code>UiView *originalContainer = [[[self.navigationController.viewControllers objectAtIndex:0] navigationItem] titleView]
  </code></pre>
  <p>I create a newTitleView and I put inside the originalContainer.subviews (UIButton) cause I need the Target action from it.</p>
  <p>All works perfectly for the first pushed controller but if I push another viewController in the stack (the second one pushed) I loose every reference to the navigationController. Every instance variables are nil.</p>
  <p>This values are getted inside the viewDidLoad</p>
  <p>firstViewControllerPushed.navigationController = (UINavigationController*)0x6693da0
  firstViewControllerPushed.parentViewController = (UINavigationController*)0x6693da0</p>
  <p>secondViewControllerPushedFromFirstViewControllerPushed.navigationController = 0x0
  secondViewControllerPushedFromFirstViewControllerPushed.parentViewController = 0x0</p>
  <p>It seems that the secondViewControllerPushed lives nowhere!!</p>
  <p>How it's possible?</p>
  <p>I double checked that I correctly push the viewController instead of present it modally</p>
  <p>Couse this issue I'm not able to make a right setup of the newTitleView for the secondViewControllerPushed.</p>