7

Please see the picture. After pressing the fullscreen button, the webview maximizes behind the UIPopover.

http://cl.ly/2V1r0i2w3v3z0z2b1X1n

I tried to look out for MPMoviePlayerDidEnterFullscreenNotification, no luck.

I really don't want to ship my own UIPopoverController but this is my only "solution" at the moment. Using anything other than UIWebView is also not an option, as I am displaying YouTube-Movies.

Edit: I use a UIWebView, so there is no way to access the views/classes that are used internally.

4
  • I suspect this is a UIWebView bug.
    – Pripyat
    Sep 1, 2011 at 20:04
  • I'm seeing the exact same behavior. Same conditions on my side, trying to display a YouTube movie within a UIWebView, and then the full screen version shows up behind the popover controller. Did you ever figure out a workaround for this?
    – jpm
    Oct 18, 2011 at 4:00
  • I know this is a pretty old post. Did you find a solution for this? I have done some workaround for this sometime back. It was something like, checking the MPMoviePlayerDidEnterFullscreenNotification and dismissing UIPopover in that. What was the issue you were facing when this happened?
    – iDev
    Nov 1, 2012 at 23:56
  • I ended up not using popovers for that, so worked around the issue. it's also quite some time, maybe Apple has fixed this since.
    – steipete
    Nov 2, 2012 at 14:27

1 Answer 1

1

According to this answer you can listen for UIMoviePlayerControllerDidEnterFullscreenNotification

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youTubeStarted:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youTubeFinished:) name:@"UIMoviePlayerControllerDidExitFullscreenNotification" object:nil];
1
  • @steipete the other alternative is to use KVO on the UIApplication's window stack. When a window is added to that stack, hide your popover. Feb 4, 2013 at 23:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.