title: Tabbar change tab bar controller items
body: <p>I have a tab bar controller with 5 view controllers. On the first tab I have a login screen and on logging in depending on the login one view controller of the tab view controllers has to be removed. I have tried doing:</p>
  
  <pre><code> [delegate.tabBarController setViewControllers:[NSArray arrayWithObjects:self.navigationController,
                                      [[delegate.tabBarController viewControllers]objectAtIndex:1],
                                      [[delegate.tabBarController viewControllers]objectAtIndex:3],
                                      [[delegate.tabBarController viewControllers]objectAtIndex:4], 
                                      nil]];
  </code></pre>
  
  <p>But I get a crash with log:</p>
  
  <pre><code>-[__NSArrayI removeFromSuperview]: unrecognized selector sent to instance
  </code></pre>