白色空间代替隐藏的标签栏

Sam*_*Dos 9 uinavigationbar uitabbarcontroller uinavigationcontroller uitabbar ios

UINavigationController在里面使用UITabBarController,我的导航控制器中的一个屏幕是一个UIImageView.当我想要全屏显示图像时,我必须隐藏导航栏和标签栏.我可以正确隐藏导航栏但是当我隐藏标签栏时,它会留下50px的空白区域.有什么建议吗?

Sam*_*Dos 8

谢谢你,我找到了解决问题的最佳方案.

MyImageViewController.hidesBottomBarWhenPushed = YES ;
[self.navigationController pushViewController:MyImageViewController animated:YES];
Run Code Online (Sandbox Code Playgroud)

它给了我想要的回应.谢谢你的分享