Coloured Status Bar on a TabBarController with NavigationBar not working
<p>I've read a lot of posts on here and tried most of the options mentioned, but none fix the issue for me. I have an app that is based off of a Tab Bar Controller. Each tab is a UIViewController with a Navigation Bar at the top.</p>

<p>Adding this code to the AppDelegate gives me an orange coloured Navigation Bar with white text, but a white status bar with Black text.</p>

<pre><code>[[UINavigationBar appearance] setBarTintColor:[UIColor orangeColor]];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
</code></pre>

<p>Reading the answers on various pages suggest adding the following to the View controller:</p>

<pre><code>- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}
</code></pre>

<p>Then calling this in View Did Load:</p>

<pre><code>[self setNeedsStatusBarAppearanceUpdate];
</code></pre>

<p>This gets me a White status bar with White text, how can I now get the status bar to go orange to match my Navigation Bar??</p>

<p>The solution mentioned on here <a href="https://stackoverflow.com/a/19513714/505457">https://stackoverflow.com/a/19513714/505457</a> for those using a Navigation Controller doesn't work, I guess thats because my main controller is a Tab Bar Controller.</p>

<p>Anyone come across this before? Thanks in advance for any advice / suggestions you may have. I can provide a sample app if required, but its probably as quick to build one with the Tab Bar template, add a Navigation bar then paste in my code samples.</p>

<p>Plasma</p>