在自定的基类里 如果navigationController的子视图大于1个就隐藏
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[[self rdv_tabBarController] setTabBarHidden:_tabBarHidden animated:YES];
if (self.navigationController.viewControllers.count > 1) {
self.tabBarHidden = YES;
}else
{
self.tabBarHidden = NO;
}
}