title: NavigationController issue in non rootViewController view
body: <p>Finally <a href="https://stackoverflow.com/questions/8733065/nspredicate-issue-using-with-numberofrowsinsection-method">yesterday</a> I've got my UISearchBar working properly. Suddenly now I am facing another issue.</p>
  
  <p>When I navigate through the views, the navigation bar moves to the right and the same navigation bar appears again -> same title and navigation button on the left. TableView stays unmoved.
     On the second click on navigation button, it yes, returns to the previous View.</p>
  
  <p>The annotation I am getting is: Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.</p>
  
  <p>I've browsed the related issues in this forum, but it didn't help me.</p>
  
  <pre><code>- (void)viewDidUnload
  {
     [self setTableView:nil];
     [super viewDidUnload];
     [self setSearchController:nil];
     [self setSearchBar:nil];
  }
  
  - (void)tableView:(UITableView *)atableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
  Kings *kingsObj;
  
  if(atableView==self.tableView)
  {
      kingsObj=[self.kingsArr objectAtIndex:[indexPath row]];
      Items *items=[[Items alloc]initWithNibName:@"Items" bundle:nil];
      items.kingID=kingsObj.kingID;
      items.king=kingsObj.kingName;
      [self.navigationController pushViewController:items animated:YES];
      [items release];
  }
  else
  {
      kingsObj=[self.filteredItems objectAtIndex:[indexPath row]];
  }
  
  Items *items=[[Items alloc]initWithNibName:@"Items" bundle:nil];
  items.kingID=kingsObj.kingID;
  items.king=kingsObj.kingName;
  [self.navigationController pushViewController:items animated:YES];
  [items release];
  }
  </code></pre>
  
  <p>Ok. the pushViewController method is inside the didSelectRowAtIndexPath. What can be wrong with it now? Before it was doing well.</p>