【问题标题】:iOS7/8 translucent navigationBar top right corner of the blackiOS 7/8 半透明导航栏右上角黑色
【发布时间】:2015-05-11 04:13:19
【问题描述】:

iOS8/iphone

设置时

navigationbar.translucent = yes;

如果也设置了

blueVC.hidesBottomBarWhenPushed = yes;

ViewControllernavigationbar右上角显示黑色。

测试结果:

默认情况下黑色区域为UIWindow。我将UIWindow 背景颜色更改为白色,这解决了问题。但这只是看起来更好,并没有完全解决。

=========================

iOS7 strange animation when using hidesBottomBarWhenPushed

self.tabBarController.tabBar.hidden=YES;

这种方式会导致push进程tabbar消失。并不能解决问题。

【问题讨论】:

  • 请提供有关您的问题的更多详细信息并提出具体问题,以便社区可以帮助您
  • 您是否尝试过查看Debug View Hierarchy 来查找导航栏下的问题?
  • 我有同样的问题,你是怎么解决的?谢谢!
  • @vicefava self.navigationController.view.backgroundColor = [UIColor whiteColor];

标签: ios navigationbar


【解决方案1】:

试试这个代码:

self.navigationController.view.backgroundColor = [UIColor whiteColor];

我还以为和这个帖子差不多:Dark shadow on navigation bar during segue transition after upgrading to Xcode 5.1 and iOS 7.1

【讨论】:

  • 非常感谢,我也遇到了同样的问题,您的建议解决了。有什么缺点吗?