如何在MDTabBarViewController中更改选项卡的颜色?

时间:2016-02-22 17:16:31

标签: ios material-design

我在iOS应用中使用此库{{3}}。具体来说,我使用MDTabBarController,我需要一种方法来更改选项卡颜色,以便它们符合我的品牌标识。我怎么能这样做?

2 个答案:

答案 0 :(得分:1)

只需像这样引用你的tabBar:

[[_tabBarViewController tabBar] setBackgroundColor: [UIColor whiteColor]];

答案 1 :(得分:0)

tabbar.tabBar.indicatorColor = UIColor.red
tabbar.tabBar.textColor = UIColor.red
tabbar.tabBar.normalTextColor = UIColor.white
相关问题