如何设置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”;

posted @ 2014-11-07 15:30  树籽  阅读(719)  评论(0编辑  收藏  举报