标签:tabbar字体颜色
//未点击的颜色
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], NSForegroundColorAttributeName, nil] forState:UIControlStateNormal];
//点击的颜色
UIColor *titleHighlightedColor = [UIColor yellowColor]; [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: titleHighlightedColor, NSForegroundColorAttributeName, nil] forState:UIControlStateSelected];
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:tabbar字体颜色
原文地址:http://blog.csdn.net/mr_banma/article/details/47752057