我正在尝试更改 TabBarItem 的背景或制作占用所有空间的整个Image。
像下面的例子:
你有一个想法如何迅速做到这一点
最佳答案
迅速:
//change icon and title color
UITabBar.appearance().tintColor = UIColor.redColor()
//change background default color
UITabBar.appearance().barTintColor = UIColor.blackColor()
//change selected background image
UITabBar.appearance().selectionIndicatorImage = UIImage(named: "tabSelected")
关于ios - 如何更改TabBarItem背景颜色,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35488099/