gpt4 book ai didi

ios - subview 返回时得到通知

转载 作者:行者123 更新时间:2023-11-29 03:12:31 25 4
gpt4 key购买 nike

我有一个 TableViewController,它使用 push-segue 导航到 subview 。当 subview 关闭时,我希望通知父 Controller 。我该怎么做?

对不起,我想对我来说已经太晚了......

最佳答案

关闭它以返回的唯一方法是吗?

如果是,您将知道何时调用 viewWillAppear:

如果不是,请使用委托(delegate)模式在 View Controller 之间进行通信。 (参见 What's the best way to communicate between view controllers?)

关于ios - subview 返回时得到通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22080095/

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