无法通过情节提要创建Unwind Segue Xcode 11

问题描述 投票:0回答:1

自从最新的Xcode发布以来,我无法将我的视图控制器连接到它的出口,以创建一个放松的序列。 (右键单击圆圈并将其拖动到出口门图标)

enter image description here

有人知道这是为什么吗?提前致谢。

ios swift iphone xcode storyboard
1个回答
1
投票

仍在工作...右键单击或控制+拖动... 但是 ..

Before you can begin adding unwind segues in Interface Builder, you
must define at least one unwind action

示例

@IBAction func unwindToMainMenu(sender: UIStoryboardSegue)
{
    let sourceViewController = sender.source
    // Pull any data from the view controller which initiated the unwind segue.
}
© www.soinside.com 2019 - 2024. All rights reserved.