I am trying to represent a Popover using a button in a UIModalPresentationPageSheet. It disables the application and returns the following message to the console:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Popovers cannot be presented from a view which does not have a window.'
My code works fine in a standard controller. As the message suggests, there is something regarding modality that prevents it from being displayed. I searched a lot for this topic, but did not find a solution. I have to believe that this is possible, since I saw something very similar in applications like 1Password.
Pointers and / or suggestions were highly appreciated.
source share