简体   繁体   中英

tabbar background changing color when selected on certain tabs

I have one tab in a tabbarcontroller that has a navigationcontroller in it and when I select that tab, the tabbar background changes color. How do I change it to not change the tabbar background color when this tab is selected? 原版的

选择联系人时

It will work try it :)

UITabBar.appearance().backgroundImage = UIImage()
UITabBar.appearance().shadowImage = UIImage()

OR

UITabBar.appearance().backgroundColor = UIColor.clearColor()

我是导航控制器中的“不确定底栏”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM