#import "SZMNavBaseController.h" @interface SZMNavBaseController () @end @implementation SZMNavBaseController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{ //在每一个即将被push的控制器push之前,设置viewController.hidesBottomBarWhenPushed = YES,表示这个控制器在被push的时候会隐藏底部的tabbar viewController.hidesBottomBarWhenPushed = YES; [super pushViewController:viewController animated:animated]; }