首页 > 解决方案 > 当我进入一个新的 viewController 时打开两次

问题描述

我正在使用以下方法在 viewControllers 之间移动:

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    self.performSegue(withIdentifier: "segueJokeDetail", sender: self)
}

这是从显示 segueId 的情节提要中捕获的内容

捕获

标签: xcodeswift4.2

解决方案


如果您在界面生成器中从 UITableViewCell 进行转场,则也不需要在 UITableView 委托中进行。


推荐阅读