iOS 关于导航栏隐藏PUSH过渡不自然处理办法
2020-08-06 本文已影响0人
xiao东哥
-(void)viewWillAppear:(BOOL)animated{
[superviewWillAppear:animated];
//防止push的时候动画过渡不自然
[self.navigationController setNavigationBarHidden:YES animated:animated];
}
-(void)viewWillDisappear:(BOOL)animated{
[superviewWillDisappear:animated];
//防止push的时候动画过渡不自然
[self.navigationController setNavigationBarHidden:NO animated:animated];
}