ios - 在不显示以前的 View Controller 的情况下展开 UIStoryboardSegue

标签 ios uikit uistoryboardsegue

如何在不按顺序显示每个 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/

相关文章:

ios - 在没有 prepareForSegue 的情况下推送到另一个 View Controller

ios - 有没有一种方法可以直接访问 UICollectionView 元素而无需重新加载?

ios - UIBezierPath行程不完整

ios - 在 iOS7.1 中使用显示(推送)segue 不会出现导航栏

ios - 程序化嵌入转场

ios - CAKeyframeAnimation - 沿路径移动并使用缓动

ios - HealthKit:是否可以通过查询将两个数量相加?

ipad - 在工具栏上方显示键盘?

ios - 在 iOS/Swift 中获取系统正常运行时间

ios - 获取表格左侧的宽度?