tabbar--颜色

2016-05-16  本文已影响0人  Nathania

// 字体颜色 选中

[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Bold" size:12.0F], NSForegroundColorAttributeName : TAB_BAR_COLOR} forState:UIControlStateSelected];

// 字体颜色 未选中

[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont systemFontOfSize:12.0F],  NSForegroundColorAttributeName:[UIColor grayColor]} forState:UIControlStateNormal];

// 图标颜色

self.tabBar.tintColor = TAB_BAR_COLOR;

上一篇 下一篇

猜你喜欢

热点阅读