I would use UIAppearance.
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]
];
题
I have changed the default blue color of some selected text with setTitleTextAttributes.
However, the image still becomes blue when selected.
How can I change this behavior?
解决方案
I would use UIAppearance.
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]
];