xcode xcode4.2.1 - 故事板 - 导航控制器 - 标题栏颜色

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9544420/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:30:58  来源:igfitidea点击:

xcode4.2.1 - storyboard - Navigation controller - Title bar color

xcodestoryboardtitlebarnavigationcontroller

提问by Jan

I am designing an app with storyboard with minimal coding. So, I am designing everything using views and buttons without the need for header files.

我正在设计一个带有故事板的应用程序,代码最少。因此,我正在使用视图和按钮设计所有内容,而无需头文件。

What is the easiest way to change the default blue title bar color to black with minimal coding?

使用最少的编码将默认的蓝色标题栏颜色更改为黑色的最简单方法是什么?

采纳答案by Mick MacCallum

Add this to your Info.plist file

将此添加到您的 Info.plist 文件中

enter image description here

在此处输入图片说明

回答by thommie

Select the nav controller in the left scene selector. enter image description here

在左侧场景选择器中选择导航控制器。 在此处输入图片说明

And click on the "Style" drop down menu and select the one you want.

然后单击“样式”下拉菜单并选择您想要的样式。

回答by T.J.

Select "Navigation Controller > Navigation Bar" in the storyboard and use the attributes inspector.

在故事板中选择“导航控制器 > 导航栏”并使用属性检查器。

enter image description here

在此处输入图片说明