iOS 7 tabBar-line, how to remove it?
UIImage* tabBarBackground = [UIImage imageNamed:@"tabbar_bg.png"]; [[UITabBar appearance] setShadowImage:tabBarBackground]; [[UITabBar appearance] setBackgroundImage:tabBarBackground];
These code works pretty well for me (I don't really have background image for tab bar):
[tab_main.tabBar setBackgroundImage:[[UIImage alloc] init]];[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
And I use these code to add a frame too:
UIColor* color_green = UIColorFromRGB(0x348e5b);tab_main.tabBar.layer.borderWidth = 0.50;tab_main.tabBar.layer.borderColor = color_green.CGColor;[[UITabBar appearance] setTintColor:color_green];
Hope that helps.
In iOS 8 the top border can be removed by setting the tab bar style to black in the inspector.