I have setup a tab bar view controller and linked with navigation controller,

refer to this image.  
[![enter image description here](https://i.stack.imgur.com/4f2Bs.png)](https://i.stack.imgur.com/4f2Bs.png)  
 The issue I'm facing is this image is "more" tab bar page   
[![enter image description here](https://i.stack.imgur.com/ONTSr.png)](https://i.stack.imgur.com/ONTSr.png)  
 when I click the cross button, it will push to home view controller to another view. But when I hit another tab and come back to more tab, the view controller stil stay at the home view controller instead of more tab origin controller. I need to hit more tab 2 times then it only will back to more tab view controller. Below code is my tab bar controller when selecting item.

```
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item {
    NSLog(@"didSelectItem: %ld", (long)item.tag);

    if (item.tag == 0) {
    //try to dismiss home view controller in this way, but it won't work
        [self.navigationController popToRootViewControllerAnimated:YES];

        NSString *str = @"TAB 1";
        NSLog(@"%@", str);
    }
}

```