0

our iOS8+ application can have the color theme changed remotely. We use the following code to change the tab bar

[[UITabBar appearance] setTintColor:[UIColor brandColor]];

However this only seems to work in the appdelegate didFinishLaunchingWithOptions method. If we use it anywhere else the new color only affects the tab bar if a view is pushed which hides the tabbar so that when it reappears the new color applies. Is there some way of reloading the UITabBar view so the color is applied as soon as the setTintColor method is called.

Thanks

Alladinian
  • 34,483
  • 6
  • 89
  • 91
tech74
  • 1,609
  • 1
  • 20
  • 39

1 Answers1

0

Take a look at this answer

The appearance proxy only affects the look of newly initialized views. Setting colors on the appearance proxy will have no effect on tab bar that is already visible.

Community
  • 1
  • 1
Yakiv Kovalskyi
  • 1,737
  • 1
  • 15
  • 29