删除标签栏上的额外空间 - Objective-C

时间:2015-12-19 03:14:28

标签: ios objective-c xcode uitabbar

如下所示,底部标签栏上方有一个细灰色条。

有没有办法彻底删除它,或者让它透明?

谢谢!

enter image description here

修改

视图约束:enter image description here

2 个答案:

答案 0 :(得分:0)

将tabBar的 shadowImage 设置为[UIImage new],并将tabBar的 backgroound 颜色设置为视图背景颜色。

答案 1 :(得分:0)

请尝试此代码仅替换您的图像名称

UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);;
Yourview = [Yourview resizableImageWithCapInsets:insets];

希望这会对你有所帮助。

相关问题