菜鸟教程小白 发表于 2022-12-12 20:57:59

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


                                            <p><p>如何在不按顺序显示每个 ViewController 的情况下通过多个 ViewController 展开?<br/>
我有 3 个 ViewController ,我们称它们为 A、B 和 C。<br/>
A使用presentViewController呈现B,B对C也是如此。当我使用C的unwind方法时,首先C消失,显示B,然后B消失,显示A。我怎样才能让它直接返回到A,没有显示 B?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p> <a href="https://developer.apple.com/library/ios/technotes/tn2298/_index.html#//apple_ref/doc/uid/DTS40013591-CH1-DETDEST" rel="noreferrer noopener nofollow">How an Unwind Segue Determines its Destination View Controller</a> </p>

<blockquote>
<p>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.</p>
</blockquote>

<p>此链接还包含设置展开转场过程的信息。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在不显示以前的 ViewController 的情况下展开 UIStoryboardSegue,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/38114404/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/38114404/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在不显示以前的 View Controller 的情况下展开 UIStoryboardSegue