How i can update UITabBarController Appearance in real time?
<p>I can't update UIBarTintColor by pressing a UIButton, it doesn't work. This is my hierarchy:</p>

<pre><code>AppDelegate &gt; HomeViewController (that holds my tabBarController) &gt; ChildViewController
</code></pre>

<p>I wanna change UiTabbarController color in real-time by pressing a button inside the ChildViewController. This is the code i use:</p>

<pre><code>UIColor* blu = [UIColor colorWithRed: 0.0/255 green: 161.0/255 blue: 223.0/255 alpha: 1];
[[UIView appearance] setTintColor:blu];
[[UITabBar appearance] setTintColor:blu];
[[UISlider appearance] setTintColor:blu];
[[UINavigationBar appearance] setTintColor:blu];
</code></pre>

<p>It doesn't change the color of my tabbar in real-time, it changes the color only if i use it during the init of the tabbar. I have search and tried different solutions:</p>

<pre><code>[self.tabBarController.tabBar setHidden:YES];
[self.tabBarController.tabBar setHidden:NO];
</code></pre>

<p>not working in my case</p>

<pre><code>CALayer *layer2 =  self.tabBarController.view.layer;
[layer2 setNeedsDisplay];
[layer2 displayIfNeeded];
</code></pre>

<p>not working in my case</p>

<pre><code>setNeedsStatusBarAppearanceUpdate
</code></pre>

<p>not working in my case.</p>

<p>I have also tried to create a method in appDelegate to contains all this tryings, and i have to tried this method from ChildViewController, instead o calling directly the code. The results are the same.
How i can do to refresh the uitabbar and change the color by pressing a button?</p>