UIImage* tabBarBackground = [UIImage imageNamed:@"biaoqian.png"];
[[UITabBar appearance] setBackgroundImage:tabBarBackground];//设置背景,修改颜色是没有用的
[[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"tm.png"]];
[[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"tm.png"]];//隐藏那条黑线
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColorgrayColor], UITextAttributeTextColor,nil] forState:UIControlStateNormal];
UIColor *titleHighlightedColor = [UIColor colorWithRed:198/255.0 green:59/255.0 blue:82/255.0 alpha:1.0];
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys:titleHighlightedColor, UITextAttributeTextColor,nil]forState:UIControlStateHighlighted];