如何在iOS 8启动屏幕文件中设置导航栏颜色?

Gav*_*ope 5 cocoa-touch interface-builder ios ios8

我正在为启动屏幕文件使用故事板.这是一个非常基本的设置:

在此输入图像描述

我想为导航栏设置不透明的颜色......

我可以在AppDelegate中执行以下操作:

[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]];
Run Code Online (Sandbox Code Playgroud)

但这不适用于启动屏幕文件.

如何barTintColor在Interface Builder中设置导航栏颜色/ ?

Ale*_*ylo 5

可以在Inspector中导航栏设置条形色调,如此处所示.

刚刚在我当前项目的LaunchScreen.xib中使用HOT PINK导航栏进行检查,它运行正常.