2015-12-19 46 views
0

正如您在下面看到的,底部的标签栏上方有一个很薄的灰色条。删除标签栏上的额外空间 - Objective-C

有没有办法彻底清除它,或使它透明?

谢谢!

enter image description here

编辑:

视图约束:enter image description here

+0

你可以分享你给予该视图的约束的屏幕截图吗? –

+0

@RKP在我的编辑中,那些是你所指的约束? – jape

回答

0

设置的ShadowImage为的TabBar作为[UIImage new]并使backgroound颜色的TabBar作为视图的背景颜色。

0

请试试这个代码IMG名替换您的图像

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

请试试这个代码只能更换图片名称

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

希望这将帮助你很好。

+0

它不是一个图像,而是一个UIView。有没有办法以不同的方式使用你的代码? – jape