title: Display default tabBarView on tabBarItem Click event
body: <p>I have used <code>UITabbarController</code> in my app.One of the tabBarItem is <code>contactsViewController</code> which displays list of contacts with <code>UITableView</code>.When I click on the tableRow it loads another view.then I click some other <code>tabBarItem</code>.again I  click <code>contactsViewController</code> it takes me to the view where i left.It does not display default contact view.I have created <code>UITabbarController</code> progrmattically.How do i display default tabBarView on <code>tabBarItem</code> click?</p>
  
  <pre><code>tabbarController = [[UITabBarController alloc]init];
  self.tabbarController.delegate = self;
  
  tabbarView = [[UIView alloc]initWithFrame:CGRectMake(0, 431, 320, 49)];
  
              UIImageView *tabImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 49)];
              [tabImage setImage:[UIImage imageNamed:@"Taskbar.png"]];
              [tabbarView addSubview:tabImage];
  
              UIButton *tabItem1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 64, 49)];
              [tabItem1 setImage:[UIImage imageNamed:@"Btn_Home.png"] forState:UIControlStateNormal];
              [tabItem1 setTag:1];
              [tabItem1 addTarget:self action:@selector(tabBarBtnAction:) forControlEvents:UIControlEventTouchUpInside];
              [tabbarView addSubview:tabItem1];
  
  -(IBAction)tabBarBtnAction:(id)sender
  {
      UIButton *btn = (UIButton *)sender;
  //    NSLog(@"tag %d\n",btn.tag);
      [self resetTabBarBtnImage];
      [self resetAllTabBarBtnImage];
      PreviousBtnTag = btn.tag;
      if ([btn tag]==1) {
          tabbarView.hidden = YES;
          [self.tabbarController setSelectedIndex:0];
          [self.navigationController popToRootViewControllerAnimated:YES];
          [btn setImage:[UIImage imageNamed:@"Btn_Home-Over.png"] forState:UIControlStateNormal];
  
      }
      else if([btn tag]==2)
      {
          tabbarView.hidden = NO;
          [self.tabbarController setSelectedIndex:1];
          [btn setImage:[UIImage imageNamed:@"Btn_Contacts-Over.png"] forState:UIControlStateNormal];
           [self.navigationController popToRootViewControllerAnimated:YES];
  
      }
  </code></pre>