1.修改选中图片:
UITabBarItem* item = [self.tabBarController.tabBar.items objectAtIndex:1]; //从0开始
item.selectedImage = [UIImage imageNamed:@"ItemSelProfile"];
2.修改选中颜色:
[self.tabBarController.tabBar setSelectedImageTintColor:[UIColor redColor]];
1.修改选中图片:
UITabBarItem* item = [self.tabBarController.tabBar.items objectAtIndex:1]; //从0开始
item.selectedImage = [UIImage imageNamed:@"ItemSelProfile"];
2.修改选中颜色:
[self.tabBarController.tabBar setSelectedImageTintColor:[UIColor redColor]];