Skip to content

Loading…

[FIXED] "Popovers cannot be presented from a view which does not have a window." when in fullscreenmodal #30

Open
viteinfinite opened this Issue · 0 comments

1 participant

@viteinfinite

I found a bug when playing a mpmovieplayerviewcontroller inside a full screen modal.
Line 578 of mgsplitviewcontroller.m reads:
[_hiddenPopoverController presentPopoverFromRect:CGRectZero inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];

but this causes a crash if self.view is not attached to a window.

So I added
if (self.view.window != nil)
before that line and that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.