OGeek|极客世界-中国程序员成长平台

标题: ios - PresentingViewController 如何获得通知其 PresentedViewController 自行解散? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:19
标题: ios - PresentingViewController 如何获得通知其 PresentedViewController 自行解散?

鉴于:

我想要达到的目标:

限制:

到目前为止我发现了什么:



Best Answer-推荐答案


在您的 Controller A 中,将其命名为 UINavigationControllerDelegate 并用 navigationController:didShowViewController 标记 Controller B 的表示(isControllerBisPresented = true)。当 B 的 viewDidAppear 时,检查 isControllerBisPresented 是否为真。

关于ios - PresentingViewController 如何获得通知其 PresentedViewController 自行解散?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47350720/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4