- 设置背景色
tabBar.barTintColor = UIColor.white
-
UITabBarItem
选中和未选中时title
颜色
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName : UIColor.blue], for: .normal)
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName : UIColor.red], for: .selected)
网友评论