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.

iDev
  • 23,310
  • 7
  • 60
  • 85
steipete
  • 7,581
  • 5
  • 47
  • 81
  • I suspect this is a UIWebView bug. – Pripyat Sep 01 '11 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 '11 at 04: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 01 '12 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 02 '12 at 14:27

1 Answers1

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];
Community
  • 1
  • 1
jjv360
  • 4,120
  • 3
  • 23
  • 37