views:

17

answers:

2

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?

alt text

A: 

did you autoresizingMask on the UIWebView

webView.autoresizingMask=(UIViewAutoresizingFlexibleHeight |
                                      UIViewAutoresizingFlexibleWidth);

and

-(BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) orientation 
{
    return YES;
}
Aaron Saunders
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
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