gpt4 book ai didi

ios - 应用程序试图在目标 上呈现一个 nil 模态视图 Controller

转载 作者:行者123 更新时间:2023-12-01 22:19:30 31 4
gpt4 key购买 nike

我正在处理企业 iOS 应用程序的一些崩溃日志。我的用户经常遇到以下崩溃。

main *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target UIApplicationRotationFollowingController: 0x100c75280.' AppDelegate.swift, line 13



在没有首先检查设备是否配置了电子邮件的情况下呈现此 MFMailComposeViewController 时,有很多关于这种情况的报告。但在我的应用程序中并非如此。

有谁知道在什么情况下可能会发生这种情况?

最佳答案

很难在不查看代码的情况下进行调试...您可以在 Xcode 中使用异常断点重新创建崩溃以查看发生了什么吗?

否则,我所能建议的就是查看 AppDelegate 的第 13 行,并尝试找出为什么您尝试呈现的任何 ViewController 由于某种原因没有被初始化?

关于ios - 应用程序试图在目标 <UIApplicationRotationFollowingController : 0x100c75280> 上呈现一个 nil 模态视图 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46668968/

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