iOS开发 导航栏bug标记

1、导航手势侧滑导致导航华东不流畅或者有缺块,如:viewControllerA-->viewControllerB


解决办法:1.检查A-->B时,B界面的backGroundColoer是否设置,否则透明色会导致这种现象

               2.分别在A界面的viewWillAppear和viewWilldisAppear方法添加

 
 
[self.navigationController setNavigationBarHidden:NO animated:YES];
[self.navigationController setNavigationBarHidden:YES animated:YES];

猜你喜欢

转载自blog.csdn.net/weixin_41953322/article/details/80268301