On iOS 10 this code doesn't work in order to remove the tabBar shadow line:
[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
Somebody knows, what must I do to remove it?
On iOS 9.3
with this two lines the line is removed, but iOS 10
ignores setShadowImage
command.
Just try to bellow code for iOS 10 :-
Swift 3.x
I had the same problem in ios 10. I fixed this issue just changing the height of UITabBar (by default is 49). Check it here how to change the height.
For iOS 10 changed tabbar style to black did the trick
If you create your own subclass of UITabBarController, you can set the values in viewDidLoad like this
Swift 3
Just the 2 lines removes the topline
It's a shadow image (property) of tabbar. Try following solutions and see.
Try this, ** Objective-C **
** Swift **
Here is apple guideline for shadowImage.