我用过 UITabbar 。我将其背景色设置为透明色。即使出现黑色背景。我调试了该视图,发现UITabbar已将 UIVisualEffectSubView UIVisualEffectBackdropView 实现为隐式黑色。用swift 4使其透明的更好的方法是在下面附加调试图像。
ios - 如何使UITabbar透明,以便可见Superview的背景图像?-LMLPHP

最佳答案

尝试这个:

yourTabBar.backgroundColor = UIColor.clear // clears the background
yourTabBar.backgroundImage = UIImage()
yourTabBar.shadowImage = UIImage()  // removes the border

关于ios - 如何使UITabbar透明,以便可见Superview的背景图像?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50343502/

10-12 00:31
查看更多