我可以改变UITabBar
中特定UITabBarItem
的背景颜色吗?
我知道如何改变所有选中背景的背景,使用以下代码:
[[UITabBar appearance] setBarTintColor:[UIColor redColor]];
[[UITabBar appearance] setTintColor:[UIColor blueColor]];
[[UITabBar appearance] setSelectedImageTintColor:[UIColor yellowColor]];
但是能否不使用子类来仅对一个项目进行此操作呢?
谢谢
tabBar.frame
,所以那里也应该出现错误。 - ndbroadbent