iOS8/苹果手机
设置时
navigationbar.translucent = yes;
如果也设置
blueVC.hidesBottomBarWhenPushed = yes;
按下ViewController
,navigationbar
右上角显示黑色。
测试结果:
黑色区域默认为UIWindow
。我将 UIWindow
背景颜色更改为白色,这解决了问题。但这只是看起来更好,并没有完全解决。
=======================
iOS7 strange animation when using hidesBottomBarWhenPushed
self.tabBarController.tabBar.hidden=YES;
这种方式会导致push进程tabbar消失。它不能解决问题。
最佳答案
试试这段代码:
self.navigationController.view.backgroundColor = [UIColor whiteColor];
我认为它类似于这篇文章:Dark shadow on navigation bar during segue transition after upgrading to Xcode 5.1 and iOS 7.1
关于iOS 7/8 半透明导航栏右上角黑色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30159565/