ios - 在多个 Storyboard环境中放松 segue

标签 ios objective-c xcode6 unwind-segue

我的应用有两个以上的 Storyboard。在 Storyboard A 中,它有导航 View Controller 、 Root View Controller 和几个 View Controller 。 它也有一个 unwind segue,比如 returnToTopScreen。 Storyboard B 有几个 View Controller 。在执行时,B 中的所有 VC 都在导航堆栈上。

我的问题是,

unwind segue 可以用于 inter storyboards unwinding 吗?

根据我的试验,Xcode6.2 允许 Storyboard B 的 VC 中的 UIbutton 连接到 Storyboard A 中的展开转场。但它不起作用。

最佳答案

是的,只要您到达第二个 Storyboard 中的 Controller ,您就可以在 Storyboard 之间放松,方法是从 Controller 之一按下或呈现顺序返回到您想要放松的 Controller 。我在一个设置中对此进行了测试,其中主 Storyboard有一个导航 Controller 及其 Root View Controller ,以及一个从根推送到的另一个 Controller 。在那个 Controller 中,我在第二个 Storyboard中实例化了 Controller ,然后推送或呈现它。在第二个 Storyboard中从该 Controller 展开的操作成功返回到导航 Controller 的根目录。

关于ios - 在多个 Storyboard环境中放松 segue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29584949/

相关文章:

javascript - 是否可以在 Objective-C (iphone) 中使用 JavaScript?

ios - 以编程方式创建的按钮不响应用户的点击

swift - 具有返回类型的 swift 方法

ios - 恢复购买 - Swift

ios - Watchkit 扩展的嵌套框架问题

iOS Playground 不显示 UI 预览

ios - 在不配置 Amazon Cognito 的情况下使用 Amazon Mobile Analytics

objective-c - 我收到一条错误消息,内容为 "Use of Undeclared Identifier ' 事件'”

objective-c - xcode iOS 9 键盘问题 : -endDisablingInterfaceAutorotationAnimated called without matching -beginDisablingInterfaceAutorotation

ios - 如何正确阅读 Apple iOS 文档?