如何设置controller tabBarItem的title:(注意标题和图片都要设置,不然不会显示)

方法一:

oneVc.tabBarItem.title = @"one";

oneVc.tabBarItem.image = [UIImage imageNamed:@"icon_index_brake”];

 

方法二:

UITabBarItem *oneBar = [[UITabBarItemalloc]initWithTitle:@"oneVc" image:nil tag:0];

oneVc.tabBarItem = oneBar;

方法三:

oneVc.title = @“one”;

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案