博客> 修改 tabBarItem
修改 tabBarItem
2019-01-22 09:25 评论:0 阅读:186 912612039

//修改当前tabbarItem标题 self.tabBarItem.title = @"车源列表"; //修改当前tabbarItem图片 self.tabBarItem.selectedImage = [[UIImage imageNamed:@"车源列表"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; self.tabBarItem.image = [[UIImage imageNamed:@"车源列表1"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

//修改指定页面tabbarItem标题 UITabBarItem *item1 = [self.tabBarController.tabBar.items objectAtIndex:1]; item1.image = [[UIImage imageNamed:@"周边1"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; item1.selectedImage = [[UIImage imageNamed:@"周边"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; item1.title = @"周边车源";

收藏
0
sina weixin mail 回到顶部