我想从UIModalPresentationPageSheet中的按钮提供Popover。它崩溃了应用程序,并将以下消息返回到控制台:莫代尔视图控制器的Present Popover
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Popovers cannot be presented from a view which does not have a window.'
我的代码在标准视图控制器中正常工作。正如消息所示,有一些关于防止显示的模式。我已经在这个主题上做了大量的搜索,但没有找到解决方案。我必须相信这是可能的,因为我在1Password等应用中看到过类似的东西。
非常感谢指标和/或建议。