title: UITabBarController Weirdness ?
body: <p>If I normally load up a <code>UITabBarController</code> and switch between views, it calls the <code>viewWillAppear</code> of each view controller.
  But it is not so.</p>
  
  <p><em><strong>I want to switch to another tab as soon as another tab is touched.</em></strong> </p>
  
  <p>If I specify a tab to load up - for example <code>[self.tabBarController setSelectedIndex:0]</code> in the <code>viewWillAppear</code> of one of the tabs (say tab 4)... It goes immediately back to tab 0.</p>
  
  <p>But after that....  it does not call the <code>viewWillAppear</code> on any of the tabs when I switch between them. 
  For example, if I again go to tab 4, it does not come back to tab 0. I expect it to by a never ending cycle as I expect tab 0 to load up as soon as tab 4 is touch. </p>
  
  <p>But it runs <strong>JUST ONCE</strong> !!</p>
  
  <p>Why ??</p>
  
  <hr>
  
  <p><em><strong>Note:</strong> Question has been edited.</em> </p>