As you can see below, there is a thin grey bar above my tab bar on the bottom.
如下所示,底部标签栏上方有一个灰色的细条。
Is there a way to remove that completely, or make it transparent?
有没有办法完全删除它,或使其透明?
Thank you!
EDIT:
视图约束:
3 个解决方案
#1
0
Set the shadowImage for tabBar as [UIImage new]
and make the backgroound colour of tabBar as the view background colour .
将tabBar的shadowImage设置为[UIImage new],并将tabBar的backgroound颜色设置为视图背景颜色。
#2
0
Please try this code img name replace your image
请尝试此代码img名称替换您的图像
UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);;
img = [img resizableImageWithCapInsets:insets];
#3
0
Please try this code only replace your image name
请尝试此代码仅替换您的图像名称
UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);;
Yourview = [Yourview resizableImageWithCapInsets:insets];
Hope this will help you great.
希望这会对你有所帮助。
#1
0
Set the shadowImage for tabBar as [UIImage new]
and make the backgroound colour of tabBar as the view background colour .
将tabBar的shadowImage设置为[UIImage new],并将tabBar的backgroound颜色设置为视图背景颜色。
#2
0
Please try this code img name replace your image
请尝试此代码img名称替换您的图像
UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);;
img = [img resizableImageWithCapInsets:insets];
#3
0
Please try this code only replace your image name
请尝试此代码仅替换您的图像名称
UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);;
Yourview = [Yourview resizableImageWithCapInsets:insets];
Hope this will help you great.
希望这会对你有所帮助。