【发布时间】:2018-06-07 08:16:00
【问题描述】:
我正在使用导航栏色调颜色对导航栏后退按钮进行主题化,当我使用本机颜色时它可以工作,而当我使用图像中的自定义颜色时它会失败。
工作代码:
self.navigationController?.navigationBar.tintColor = UIColor.orange
不工作的代码:
let color = UIColor.init(patternImage: someImage)
self.navigationController?.navigationBar.tintColor = color
谁能给我一点亮光?
【问题讨论】:
标签: ios swift tint bartintcolor