How to Set the Navigation Bar Colour in an iOS 8 Launch Screen File?

cocoa-touch, interface-builder, ios, ios8

Solution

Bar tint is settable for a navigation bar in the Inspector as shown here.

Just checked it with a HOT PINK nav bar in my current project's LaunchScreen.xib and it works fine.

Problem

I'm using a storyboard for my Launch Screen File. It's a very basic setup: I want to set an opaque colour for the navigation bar... I can do something like the following in the AppDelegate: ``` [[UINavigationBar appearance] setBarTintColor:[UIColor redColor]]; ``` But that doesn't apply to the launch screen file. How do I set the nav bar colour / `barTintColor` in Interface Builder?

Original source