I'm embedding a Youtube video in a browser which is part of an all portrait application. When you launch the youtube video, it plays in MPAVController and rotation in Landscape is permitted. This is not an issue for me, but the problem is if the video is in landscape and i press "OK" to dismiss the video; i return to the browser but the iPhone status bar is now stuck in landscape mode leaving a blank space on the top of the app, as well as the status bar overlappting the right or left part of my app depending on rotation orientation.
My view controller containing the UIWebView is locked in portrait:
- (BOOL) shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}
Note that this issue is not present when compiling with an SDK prior to 6.0.
Anyone with a similar problem has a solution?