I would use UIAppearance.
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]
];
Domanda
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?
Soluzione
I would use UIAppearance.
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]
];