ios - 接收者没有标识符“goToDetail”的segue
问题描述
我已经仔细检查了我的标识符在情节提要中的拼写是否正确,并且转场指向正确的方向,但我一直收到此错误。有人可以看看我的代码,看看我是否遗漏了什么?
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let selectedData = tableData[indexPath.row]
tableView.deselectRow(at: indexPath, animated: true)
performSegue(withIdentifier: "goToDetail", sender: selectedData)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let destination = segue.destination as? DetailViewController {
destination.vocab.text = sender as? String
}
}
解决方案
推荐阅读
- angular - wow.js 与 Angular 产生警告
- java - Tomcat 服务器 HTML 页面井字游戏中的 ArrayIndexOutOfBoundsException
- javascript - javascripty中基于大小写字母的字符串匹配
- cors - nodemcu esp8266中的CORS问题
- c# - 如何将此 Task.WhenAll() 实现转换为 Parallel.ForEach()?
- ios - Whatsapp ChatStorage.sqlite 文件已损坏
- python - 创建中断 (ISR) 以创建平滑的机械臂运动
- python - 如何在 Python 中获取 CFFI 函数的 `const` 修饰符?
- node.js - 使用 VSCode 在 Docker 容器中调试 Typescript 文件
- ionic-framework - PWA 服务工作者缓存/更新预期行为