简体   繁体   English

模态 Segue 显示(推送)Segue LargeTitle 导航不起作用

[英]Modal Segue to Show(Push) Segue LargeTitle Navigation not working

I have my main UIViewController that is presenting my first UITableViewController Modally, then i'm trying to use Show(Push) segue to get to my second UITableViewController but in my second UITableViewController the navigation bar is not showing large title.我有我的主要 UIViewController 以模态方式呈现我的第一个 UITableViewController,然后我尝试使用 Show(Push) segue 进入我的第二个 UITableViewController 但在我的第二个 UITableViewController 中,导航栏没有显示大标题。 My first UITableViewController shows the large title nav fine but when i click to go to my second UITableViewController (with show segue) it doesn't show large title.我的第一个 UITableViewController 显示大标题导航很好,但是当我单击 go 到我的第二个 UITableViewController(带有显示 segue)时,它没有显示大标题。 I have LargeTitle set to always for both of the UITableViewControllers but for some reason the second one won't show large title我将两个 UITableViewControllers 的 LargeTitle 设置为始终,但由于某种原因,第二个不会显示大标题

Anyone else having this issue?还有谁有相同的问题吗?

First of all, you should be presenting a UINavigationController that has your first UITableViewController as the rootViewController .首先,您应该展示一个UINavigationController ,它的第一个UITableViewController作为rootViewController

Then the following should work:然后以下应该工作:

navigationController?.navigationBar.prefersLargeTitles = true

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM