可以在基础类中实现以下方法即可

- (void)viewDidAppear:(BOOL)animated{
    
    [super viewDidAppear:YES];
    
    self.hidesBottomBarWhenPushed = YES;//隐藏
    
}

- (void)viewDidDisappear:(BOOL)animated{
    
    [super viewDidDisappear:YES];
    
    self.hidesBottomBarWhenPushed = NO;//显示
}

 

posted on 2017-04-11 10:11  fatal-奚山遇白  阅读(236)  评论(0编辑  收藏  举报