title: Problem adding tab bar items to UITabBar
body: <p>I have a tab bar based application in which I am trying to add tab bar items to the tab bar dynamically using <code>setItems</code> method of the <code>UITabBar</code>.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>[self.tabBarController.tabBar setItems:self.level1TabBarItems animated:YES];
  </code></pre>
  
  <p>Where <code>self.level1TabBarItems</code> is an <code>NSMutableArray</code> with 4 <code>UITabBarItems</code> in it.
  When I run this code, I get an exception from the compiler.</p>
  
  <blockquote>
    <p>NSInternalInconsistencyException, reason:Directly modifying a tab bar managed by a tab bar controller is not allowed.</p>
  </blockquote>
  
  <p>I have tried deleting the <code>UITabBarViewController</code> and adding it again but it did not work.</p>