iOS 7/8 半透明导航栏右上角黑色

标签 ios navigationbar

iOS8/苹果手机

设置时

navigationbar.translucent = yes;

如果也设置

blueVC.hidesBottomBarWhenPushed = yes;

按下ViewControllernavigationbar右上角显示黑色。

测试结果:

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

enter image description here

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

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/

相关文章:

ios - 按自定义形状裁剪 UIImage

ios - Xcode 快疯了!在编码时,丢失类、引用并且不会自动完成,经常给出 <<error type>>

ios - TabBarController 中嵌入的导航栏中未显示按钮项

html - 制作导航栏的元素html

ios - 安装不同版本的 iPhone 模拟器

ios - 收到/未收到广告时调整 UITableView 高度

html - CSS 下拉菜单与内容对齐

ios - NavigationItem titleView 出现在左侧一段时间,然后移至中心

ios - 推送后导航栏透明度

ios - 将多张图片上传到 Parse 的正确方法