gpt4 book ai didi

ios - UITableViewController 上的后退按钮编译错误

转载 作者:行者123 更新时间:2023-11-30 12:45:27 26 4
gpt4 key购买 nike

好吧,我通过教程做了一个后退按钮,发现它无法编译。这是在 UITableViewController 中,名称为 NewTableViewContoller(class) ,它给了我这个错误我的声誉没有 10,所以这是链接。 (抱歉我是新人)

更新:我已经修复了编译错误,现在希望后退按钮显示我的 SearchForViewController。

enter image description here

最佳答案

NewTableViewContoller 还嵌入了 UINavigationController,因此您可以像这样从中弹出:

_ = navigationController?.navigationController?.popViewController(animated: true)

如果您使用 show 进行 segue,那么您需要关闭 Controller 而不是popViewController

self.dismiss(animated: true)

关于ios - UITableViewController 上的后退按钮编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41689639/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com