I have been using UITabbar in an app. There is an upper border line coming in top of the UITabbar. Refer below image :-
I Googled it and tried the suggested code like :-
[[UITabBar appearance] setShadowImage:[[UIImage alloc] init]];
Also
[[UITabBar appearance] setShadowImage:nil];
self.navigationController.toolbar.clipsToBounds = YES;
But none of them is working. Any solution?
[self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"];
or you can use
[[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"transparentShadow.png"]];
or
[[UITabBar appearance] setShadowImage:nil];