提高标签栏的顶部边框线[重复]

问题描述 投票:-1回答:1

这个问题在这里已有答案:

我设计了一个看起来像这样的标签栏......

enter image description here

但我想提高标签栏的顶部边框,以便中心的大图像在边框内下降。看起来应该是这样...... enter image description here

我怎样才能做到这一点......?

ios swift uitabbarcontroller
1个回答
0
投票

尝试此代码以删除UITabbar的顶部边框。

UITabBar.appearance().layer.borderWidth = 0.0
UITabBar.appearance().clipsToBounds = true
UITabBar.appearance().shadowImage = UIImage()
UITabBar.appearance().backgroundImage = UIImage()mage = UIImage()
© www.soinside.com 2019 - 2024. All rights reserved.