一. 导航栏设置
第一个页面隐藏系统自带的导航栏,添加自己的导航栏
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES animated:YES];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[self.navigationController setNavigationBarHidden:NO animated:YES];
}
可以解决侧滑时,第二个页面的导航栏消失的问题
网友评论