xcode - 当我进入一个新的 viewController 时打开两次
问题描述
我正在使用以下方法在 viewControllers 之间移动:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
self.performSegue(withIdentifier: "segueJokeDetail", sender: self)
}
这是从显示 segueId 的情节提要中捕获的内容
解决方案
如果您在界面生成器中从 UITableViewCell 进行转场,则也不需要在 UITableView 委托中进行。
推荐阅读
- docker - Magento,数据库转储
- python - 是否可以使用 pandas shift 功能并保留 dtypes?
- c# - 从 ASP.net MVC 控制器中的二进制数据下载图像时返回文件不起作用
- android - 无法在 Flutter 中使用 Hive 插件
- javascript - ngModel如何以角度访问错误属性?
- excel - 为什么这个宏需要 40 秒才能运行?
- aws-lambda - 使用 boto3 过滤 cloudwatch 日志组
- javascript - 反应数组的条件排序
- remote-server - 是否有任何选项可以通过 rundeck 本身杀死在远程机器上运行更长时间的作业?
- http - TCP“连接”是如何维护的,HTTP Keep-Alive 是如何影响它的?