如何在不按顺序显示每个 View Controller 的情况下展开多个 View Controller ?
我有 3 个 View Controller ,我们称它们为 A、B 和 C。
A使用presentViewController呈现B,B对C做同样的事情。当我从C使用unwind方法时,先是C消失,显示B,然后B消失,显示A。我怎样才能让它直接返回到A,从来不显示 B?
最佳答案
How an Unwind Segue Determines its Destination View Controller
When an unwind segue is initiated, it must first locate the nearest view controller in the navigation hierarchy which implements the unwind action specified when the unwind segue was created. This view controller becomes the destination of the unwind segue. If no suitable view controller is found, the unwind segue is aborted.
此链接还包含有关设置展开转场过程的信息。
关于ios - 在不显示以前的 View Controller 的情况下展开 UIStoryboardSegue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38114404/