0

我正在尝试快速构建一个向下滑动的菜单。除了 unwind segue 之外,一切都运行良好。

我有一个 CenterViewController,我在其中实现了以下方法:

@IBAction func unwind(segue: UIStoryboardSegue) {
    let sourceController = segue.sourceViewController as! MenuTableViewController
    self.title = sourceController.currentItem?.title
}

在 VC(CenterVC 和 MenuVc)中,我都覆盖了 prepareForSegue 方法。

在故事板中,我“从原型单元格 ctrl 到退出按钮”并将其与 unwind 方法连接

但是,当我触摸 MenuVc 中的单元格时,不会调用 Action(我已经用断点检查过)

我试过像在这个旅游中那样做,但没有奏效。

我犯了错误的任何想法?

4

0 回答 0