这是我的问题。我有 MainViewController 和 MenuViewController。当我转到 MenuViewController 时,我可以在多个操作之间进行选择。其中之一是电子邮件编辑器。当我单击该按钮时,MenyViewController 消失,MainViewController 出现,然后我等待电子邮件 View Controller ,但它没有显示。我收到此错误
Warning: Attempt to present <MFMailComposeViewController: 0x15f0ef000> on <app.MainViewController: 0x15e6d9090> while a presentation is in progress!
我明白原因,但我无法修复它。我尝试使用 NSTimer 推迟电子邮件撰写 View Controller 的演示,并且它有效。
最佳答案
遇到了类似的问题,重复的评论没有帮助,因为我无权访问先前的 View Controller ,认为这可能对其他人有帮助。
(我的 Objective-C 解决方案)
dispatch_async(dispatch_get_main_queue(), ^ {
//present view controller
});
关于swift - 警告 : Attempt to present <MFMailComposeViewController: - Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35845936/