Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using a storyboard for my Launch Screen File. It's a very basic setup:

enter image description here

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?

like image 973
Gavin Hope Avatar asked Feb 19 '15 00:02

Gavin Hope


People also ask

How do I change the navigation bar on my Iphone?

Change the Bar Style A user changes the navigation bar's style, or UIBarStyle , by tapping the “Style” button to the left of the main page. This button opens an action sheet where users can change the background's appearance to default, black-opaque, or black- translucent.

What is difference between splash screen and launch screen?

Splash Screen is the very first screen the user sees when they open up an app on a mobile device. It's the very first chance of creating a positive impact on the users. It appears while the app is loading when the user has just opened up the app. Many times the Splash screen is called a launch screen.

What is splash screen in iOS?

Splash screen is commonly found in iOS apps, as well as, other desktop applications. This is the first screen you see when launching an application. Usually, splash screen is an image covering the entire screen and disappears after the main screen is loaded.


1 Answers

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.

like image 157
Alex Curylo Avatar answered Sep 22 '22 16:09

Alex Curylo