使用以下方法:
- (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self.navigationController setNavigationBarHidden:YES]; }
退出该控制器时还原:
- (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; [self.navigationController setNavigationBarHidden:NO]; }
-- end
版权声明:本文为博主原创文章,转载请注明来源:http://blog.csdn.net/zhangwenhai001
时间: 2024-10-25 18:09:12