ios - 无法使用 unwind segue 展开到 UITableviewController
问题描述
我有一个UINavigationController
具有以下层次结构:
tableViewController -> detailView1 -> detailView2。
从detailView2
我试图回到tableViewController
使用展开序列。但什么也没有发生。
在 TableViewController 中有 unwind 方法
@IBAction func unwindTest( _ seg: UIStoryboardSegue) {
}
detailView2 有一个按钮。这会触发 unwind segue。这完成了从按钮拖动到此 ViewController 中的出口
注意:当我尝试用UITableviewController
unwind UIViewController
segue 替换时。
解决方案
未设置 UITableviewController 的自定义类。一旦设置了 unwind segue 就可以正常工作。
推荐阅读
- c - 我的程序无法正确输出行
- javascript - 文件何时完成流式传输到 AWS S3 上传 api 的事件侦听器?
- javascript - Console.log 不等待承诺
- bash - Bash:从文件名创建文件夹
- javascript - 内部函数不返回对外部函数中分配的变量的更改
- reactjs - 如何在 Material-UI 中扩展 OverridableComponent 接口
- rabbitmq - 无法使用 chef 和 testkitchen 配置 rabbitmq
- flutter - 我的可滚动列表视图有什么问题?
- python - 使用 pyparsing 解析字节字符串
- html - 防止锚链接添加到 Django 中的 url