如何在不按顺序显示每个 View Controller 的情况下通过多个 View Controller 展开?
我有 3 个 View Controller ,我们称它们为 A、B 和 C。
A使用presentViewController呈现B,B对C也是如此。当我使用C的unwind方法时,首先C消失,显示B,然后B消失,显示A。我怎样才能让它直接返回到A,没有显示 B?
Best Answer-推荐答案 strong>
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/
|