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?
tabBar.clipsToBounds = YES;
is work for me.
[self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"];
or you can use
[[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"transparentShadow.png"]];
or
[[UITabBar appearance] setShadowImage:nil];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With