//设置tabBarItem的title,以及点击和不点击状态图片
self.tabBarController.tabBarItem = UITabBarItem(title: "投资理财", image: image, selectedImage: imageSeleted);
 
//设置tabBarItem的title的字体颜色和字大小及字体样式 
self.tabBarController
.tabBarItem.setTitleTextAttributes([NSForegroundColorAttributeName:BGColor,NSFontAttributeName:UIFont(name: "Helvetica-Bold", size: 12)!], forState: UIControlState.Normal)
12)!], forState: UIControlState.Selected)

 

相关文章:

  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-10-30
  • 2021-12-01
  • 2021-04-11
相关资源
相似解决方案