【发布时间】:2015-03-25 07:43:01
【问题描述】:
我有一个 UITabBar 我想更改中间项目的背景颜色,但我不知道如何! (我想让酒吧的其余部分保持深灰色)。
let barTintColor = UIColor(red: 54/255, green: 54/255, blue: 54/255, alpha: 1.0)
UITabBar.appearance().barTintColor = barTintColor
【问题讨论】:
-
而不是使用
appearance代理设置对象的barTintColor,当你使用代理你修改所有UITabBar类实例
标签: swift