I have a UIViewController whose view is a UIWebView with an embedded movie. When the movie is playing full screen, and the device is rotated, the title bar ends up behind the status bar after the movie is dismissed. Why might this happen?
A:
did you autoresizingMask on the UIWebView
webView.autoresizingMask=(UIViewAutoresizingFlexibleHeight |
UIViewAutoresizingFlexibleWidth);
and
-(BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) orientation
{
return YES;
}
Aaron Saunders
2010-10-18 22:39:43
Yes. The view that is behind the status bar is the UINavigationController's view. It is autoloaded by the UINavigationController code. Also, It doesn't happen when I rotate the device when the movie isn't playing. When I rotate the device when it's in this "bad" state, it corrects itself.
richcollins
2010-10-18 22:43:57
A:
Turns out that the animation of the view controller's view wasn't finished when the video started. This caused it to be redisplayed over the video player view.
richcollins
2010-10-20 16:30:28