MainTabBarController.h
UITabBarItem *item = [self.tabBar.items objectAtIndex:index];
[item setTitle:title];
if (index==2) {
item.imageInsets=UIEdgeInsetsMake(-14, 0, 14, 0);
}
MainTabBarController.h
UITabBarItem *item = [self.tabBar.items objectAtIndex:index];
[item setTitle:title];
if (index==2) {
item.imageInsets=UIEdgeInsetsMake(-14, 0, 14, 0);
}
转载于:https://www.cnblogs.com/tufei7/p/7653289.html