简体   繁体   English

导航栏标题未显示在情节提要屏幕上

[英]Navigation Bar Title Not Displaying On Storyboard Screen

Xcode 9 Xcode 9

I've tried to change the text color for the Navigation Item's title, but I've had no luck. 我试图更改导航项标题的文本颜色,但是我没有运气。 It doesn't display at the Storyboard either at the running app. 它也不会在正在运行的应用程序的情节提要中显示。

These are the properties I've tried to change, but titles aren't displaying at the View Controllers. 这些是我尝试更改的属性,但标题未显示在视图控制器上。

导航属性

The problem was I was embedding the view into a tab controller after the navigation controller. 问题是我将视图嵌入到导航控制器之后的选项卡控制器中。 I invert the order (that's the right way tab->nav->view) and now title is displaying. 我反转顺序(这是tab-> nav-> view的正确方式),现在显示标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 情节提要中导航栏标题视图中的UIButton和标签 - UIButton and Labels in Navigation Bar Title View in Storyboard 更改拖动到情节提要中的导航栏的标题 - Change title of a Navigation Bar dragged in storyboard 如何在故事板中设置导航栏的标题? - How to set title of navigation bar in storyboard? 标题和栏按钮未显示在导航栏中 - Title and bar button not displaying in navigation bar 从Storyboard在UITableViewController上添加带标题的导航栏而没有导航控制器 - Add Navigation Bar with title without Navigation controller on UITableViewController from Storyboard 如何在Main.storyboard中具有参考的其他Storyboard中为导航控制器设置选项卡图标和标题? - How to set tab bar icon and title for a Navigation controller in different Storyboard which has reference in Main.storyboard? 导航栏未显示在情节提要中 - Navigation Bar not showing in Storyboard 隐藏故事板中的导航栏 - Hide the navigation bar in a Storyboard 在故事板中隐藏导航栏 - Hide navigation bar in storyboard 我不能同时在情节提要中将标题和图像同时设置到导航栏上的右侧栏项目吗? - Cann't I set title and Image to the right bar item on navigation bar at the same time in storyboard?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM