iOS7 / 8半透明导航栏右上角的黑色
2020年02月19日
作者:佚名
iOS8上/
iphone
设置时
navigationbar.translucent = yes;
如果还设置
blueVC.hidesBottomBarWhenPushed = yes;
推ViewController,导航栏右上角显示黑色.
检测结果:
默认情况下,黑色区域是UIWindow.我将UIWindow背景颜色更改为白色并修复了问题.但这只是看起来更好,并没有完全解决.
=======================
iOS7 strange animation when using hidesBottomBarWhenPushed
self.tabBarController.tabBar.hidden=YES;
这种方法会导致推进进程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
以上是来客网为你收集整理的iOS7 / 8半透明导航栏右上角的黑色全部内容,希望文章能够帮你解决iOS7 / 8半透明导航栏右上角的黑色所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。