Frage

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?

War es hilfreich?

Lösung

I would use UIAppearance.

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top