如何设置controller tabBarItem的title
如何设置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”;