gpt4 book ai didi

ios - 如何将一个 Storyboard中的导航 Controller 连接到另一个 Storyboard中的 View Controller ?

转载 作者:行者123 更新时间:2023-12-05 07:35:56 26 4
gpt4 key购买 nike

这是我的导航 Controller ,它在堆栈中有一个 View Controller ,但我有另一个 Storyboard,其中包含我想添加到堆栈中的 View Controller 。我将 View 分开,以便更好地组织我的 View 并减少每个 Storyboard的 View 。如何将引用 Storyboard中的 View 添加到显示的导航 Controller ?

enter image description here

现在我在第二个 Storyboard中有指向另一个导航 Controller 的引用,但我不会在第一个导航 Controller 中有指向 View Controller 的后退箭头。

最佳答案

在 Storyboard A 中,您有一个导航 Controller ,将 Segue 添加到 Storyboard B(设置),并确保您还从 Storyboard B 中的 Referenced ID 中写入您喜欢的 View Controller ID (MyViewControler)

enter image description here

在 Storyboard B(设置)中添加一个导航 Controller 并将 Root View Controller 设置为您喜欢的那个(MyViewControler)此导航将仅用于显示 UI,因为它将位于 Storyboard A 的导航 Controller 中并且将不是导航堆栈的一部分,这是因为您添加了Referenced ID !!!

关于ios - 如何将一个 Storyboard中的导航 Controller 连接到另一个 Storyboard中的 View Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49350001/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com