设置image 和seletedImage:
mindListVC.tabBarItem.image = [UIImage imageNamed:@"tab_explore"];
[mindListVC.tabBarItem setSelectedImage:[[UIImage imageNamed:@"tab_explore_pre"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];//iOS 7以上
设置选中时候的title的颜色:
[[UITabBarItem appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName : [GGUtil colorWithHexString:@"00c7fe"] }
forState:UIControlStateSelected];
设置平时的字体大小:
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIFont boldSystemFontOfSize:10.0f], NSFontAttributeName, nil] forState:UIControlStateNormal];