tabBar添加图片或文字受自带蓝色背景影响
1.图片解决方法
[[UIImage imageNamed:selectedImageStr] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
2.文字解决
NSMutableDictionary *selectTextAttribut = [NSMutableDictionary dictionary];
selectTextAttribut[NSForegroundColorAttributeName] = [UIColor orangeColor];
[vc.tabBarItem setTitleTextAttributes:selectTextAttribut forState:UIControlStateSelected];
自定义TabBar是改变tabBar的高度出现空白间隙
1.解决在tabBar创建完成后面加上
_tabCtl.tabBar.frame = CGRectMake(0, self.window.frame.size.height-44, 320, 44);
UIView * transitionView = [[_tabCtl.view subviews] objectAtIndex:0];
transitionView.height = self.window.frame.size.height-44;