描述: 我有一个 Spilled View Controller ,它有 masterController
来显示所有菜单项,辅助 Controller (DetailViewController1
) 是显示一些细节。现在我有了 DetailViewController2
,它显示了一些其他信息。
流程 SplitViewController,它有MasterViewController
(菜单的表格 View )-> DetailViewController1
-> DetailViewController2
问题:如果我使用show
segue 显示DetailViewController2
则没问题。如果我使用 show detail
segue,则 DetailViewController2
中的导航栏后退按钮不会关闭我的 DetailViewController2
以返回到 DetailViewController1
.
即使我使用 show
segue,它也无法关闭。我在这里做错了什么?
最佳答案
你应该只使用 show,因为 Show detail segue 替换了 Controller 而不是推送它
来自苹果
显示详细信息:
Present the content in the detail area. If the app is displaying a master and detail view, the new content replaces the current detail. If the app is only displaying the master or the detail, the content replaces the top of the current view controller stack.
您可以在这里找到更多相关信息
关于ios - dismissview Controller 在 splitView 或 tabBar Controller 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34392535/