Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove UITabBar horizontal separator in iOS7

I want to remove the horizontal separator line between a UITabBar and the rest of the screen. I'm asking the same question as this guy but updated for iOS7.

Setting the background image of my UITabBar doesn't alleviate the problem, nor does setting the background image of the [UITabBar appearance] object.

Is this still possible in iOS7? If so, how?

like image 833
QED Avatar asked Nov 24 '25 15:11

QED


1 Answers

You could also hide shadow line using this code:

[self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"];

Swift

self.tabBar.setValue(true, forKey: "_hidesShadow")
like image 168
saltwat5r Avatar answered Nov 28 '25 16:11

saltwat5r



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!