iOS - 导航栏背景和 UIView 背景之间的颜色差异

标签 ios swift swift2

NavigationBar 和 UIView 之间存在颜色差异。不过我给了它们相同的颜色。如何使用 Swift 以编程方式修复此问题?

enter image description here

最佳答案

禁用导航栏上的半透明效果。

enter image description here

关于iOS - 导航栏背景和 UIView 背景之间的颜色差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39006987/

相关文章:

ios - 使用 GMSPlaceField.addressComponents 的 findPlaceLikelihoodsFromCurrentLocation 失败

ios - Swift 3 核心数据 - init(上下文 :) is only available on iOS 10 or newer

ios - 为不同屏幕制作 View Controller 的最佳方式

ios - GoogleToolboxForMac 框架错误

ios - 如何从 Storyboard 中从 xib 到 View Controller ?

ios - 无法在 swift 2.1 中读取 plist 文件

ios - 如何在 Interface Builder (Xcode 9) 中工作的 UIButton 子类中设置默认标题

ios - 在 Gameplaykit 中,如何在 GKAgent2D 行为中添加延迟 GKGoal 时间?

ios - iPhone 7 Plus AVPlayer 周围有边框(白色颜色不匹配)

ios - 删除在 View 上绘制的线