push/pop 导航栏黑色阴影问题
2018-09-10 15:57 法子 阅读(490) 评论(0) 编辑 收藏 举报原文:https://blog.csdn.net/thelittleboy/article/details/49001973
Toolbar类型,translucent = true,如果遮住的view有颜色,在push或pop时,都会有一部分颜色渐变区域。
当UITabBarController的ViewControllers是NavigationController时,push或pop右上角会有黑色阴影,应该是系统bug。
解决办法是把window的backgroundColor设成white
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. window?.backgroundColor = .white return true }