【发布时间】:2016-07-10 12:21:32
【问题描述】:
我正在制作一个在 UITabBarController 中带有标签栏的应用程序。
我想让所选项目具有不同的(自定义)颜色,并且比其他项目高一点。
我使用背景图像将标签栏的背景设置为自定义颜色:
UITabBar.appearance().backgroundImage = UIImage(named: "TabBarBlue")
UITabBar.appearance().tintColor = UIColor.whiteColor()
我在网上搜索过,但没有找到好的解决方案,这里有人知道如何实现吗?
【问题讨论】:
标签: ios xcode swift ios9 tabbar