gpt4 book ai didi

ios - 关闭 View Controller 意外行为

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

我遇到了关于当前解雇 ViewController 的奇怪问题。

例如:-

我在 ViewController A,然后推送到 B

所以在导航 Controller 堆栈中我们有 [A,B]

现在,如果我在 B 上呈现任何 View Controller (例如 MFMailComposeViewController)

然后,在发送邮件或删除草稿后,它会关闭 MFMailComposeViewController 并重定向到 A 而不是 B。

我对此进行了研究,但找不到任何替代方案。

最佳答案

如果您在ViewControllerB中的MFMailComposeViewControllerDelegate的didFinishWithResult方法中调用了Popviewcontroller方法,那么这是可能的。相反,您可以避免在 didFinishWithResult 方法调用中调用 PopViewController 方法。

关于ios - 关闭 View Controller 意外行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41995035/

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