如何使UITabbar半透明不半透明的UIKIt

时间:2020-07-11 08:00:07

标签: uikit uitabbarcontroller uitabbar

我希望标签栏是半透明的。主要问题是如何使视图控制器的内容完全超出选项卡,从而使内容在透明性后面变得可见。

这是绿色的,因为后面是黑色的视图。

tabBarController?.tabBar.barTintColor = UIColor.green.withAlphaComponent(0.1)

这会使标签栏变黑

tabBarController?.tabBar.barTintColor = UIColor.clear

在我的图像中,蓝色内容应一直向下延伸到标签栏的底部。

我用Xcode创建了一个新的选项卡式应用程序以生成选项卡。

enter image description here

0 个答案:

没有答案