UITabbar有个setTintColor这个方法,可以理解为,高亮的时候,或者点击后的颜色设置。

UITabBarItem有个setTitleTextAttributes的方法,是用来设置字体的颜色。

[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:

[UIColor redColor], NSForegroundColorAttributeName,

nil] forState:UIControlStateNormal];

UIColor *titleHighlightedColor = [UIColor greenColor];

[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:

titleHighlightedColor, NSForegroundColorAttributeName,

nil] forState:UIControlStateSelected];

最新文章

  1. Android中Path类的lineTo方法和quadTo方法画线的区别
  2. sqlserver附加 mdf、ldf的方法(手记)
  3. Flex 对象克隆
  4. 浏览器判断是否安装APP
  5. uva12716 gcd
  6. Xcode的command+shift+o是一个不错的工具
  7. Inside Flask - 配置的实现
  8. java 集合类说明与区别
  9. webx学习1
  10. 十四、Spring Boot 日志记录 SLF4J
  11. MM-科目自动分配
  12. Admin注册和路由分发详解
  13. eclipse的快捷键【转载】
  14. ajax实现
  15. Direct2D教程III——几何(Geometry)对象
  16. java多线程技术之条件变量
  17. Nginx配置https和wss
  18. selenium测试(Java)--操作cookie(十七)
  19. Codeforces Round #417 (Div. 2) B. Sagheer, the Hausmeister
  20. poj3348凸包面积

热门文章

  1. topcoder SRM 593 DIV2 WolfDelaymaster
  2. Codeforces Round #264 (Div. 2)
  3. 象写程序一样写博客:搭建基于github的博客
  4. Linux 高级网络编程
  5. 转载--thinkphp框架的路径问题 - 总结
  6. Use a PowerShell Module to Easily Export Excel Data to CSV
  7. Powershell的内置变量
  8. 【液晶模块系列基础视频】2.虚拟U盘
  9. yii2.0安装创建应用shiyong 归档文件安装
  10. service mongod start start: Unknown job: mongod问题