0

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?

nobody
  • 19,814
  • 17
  • 56
  • 77
Mando
  • 11,414
  • 17
  • 86
  • 167

1 Answers1

3

I would use UIAppearance.

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

roycable
  • 301
  • 1
  • 9