Question

I have changed the default blue color of some selected text with setTitleTextAttributes. However, the image still becomes blue when selected.

enter image description here

How can I change this behavior?

Était-ce utile?

La solution

I would use UIAppearance.

[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top