[self hideContentController:self.tabBarController.viewControllers[0]];
#pragma mark - 隐藏tabbar上的控制器
- (void) hideContentController: (UIViewController*) content
{
[content willMoveToParentViewController:nil];// 1
[content.view removeFromSuperview];// 2
[content removeFromParentViewController];// 3
}
网友评论