首先我們設(shè)置tabbarItem的文字為空字符串@""
navigationViewController.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"" image:normalImage selectedImage:selectImage];
然后設(shè)置圖片的偏移
navigationViewController.tabBarItem.imageInsets = UIEdgeInsetsMake(5, 0, - 5, 0);
效果圖
效果圖