I ran into the same problem. Here's how I solved it:
First, register to receive ExitFullscreenNotification, on a ViewController that contains a UIWebView:
- (void)viewDidLoad { [super viewDidLoad]; // For FullSCreen Exit [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(youTubeVideoExit:) name:@"UIMoviePlayerControllerDidExitFullscreenNotification" object:nil]; }
Then, in the "exit fullscreen" handler, forcibly select Portrait mode:
- (void)youTubeVideoExit:(id)sender { [[UIApplication sharedApplication] setStatusBarOrientation:UIDeviceOrientationPortrait animated:NO]; }
When the video ends in landscape mode, the user sees that the status bar changes its location for a split second. This may not be the best solution, but at least it solves the problem.
Hope this helps!
source share