UINavigationBar's frame ignores statusbar after use of MPMoviePlayerViewController

Originator:steipete
Number:rdar://9351530 Date Originated:28-Apr-2011 04:50 PM
Status:Duplicate/8585944 Resolved:
Product:iOS SDK Product Version:4.3.2
Classification:UI Reproducible:Always
 
Summary:
UINavigationBar's frame ignores statusbar after use of MPMoviePlayerViewController.
See http://plixi.com/p/96708816

Steps to Reproduce:
Here's a sample project: http://cl.ly/2a0d0z1S1P0B350V0G1l (is also attached)

And the code for reference:
- (void)movieDidFinish:(NSNotification *)n {
    [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:n.object];
    [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString *movieStringUrl = [[NSBundle mainBundle] pathForResource:@"avatar-builder" ofType:@"mov"];
    MPMoviePlayerViewController *vc = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:movieStringUrl]];
    vc.moviePlayer.controlStyle = MPMovieControlStyleNone;
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:vc.moviePlayer];
    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
     
    [self presentMoviePlayerViewControllerAnimated:vc];
}


Expected Results:
UINavigationBar should not be overlapped with statusbar.

Actual Results:
UINavigationBar gets overlaped with statusbar.
http://plixi.com/p/96708816

Regression:

Notes:

Comments

15-Jun-2011 08:33 AM Apple Developer Bug Reporting Team : This bug has been closed as Duplicate. We are aware of and tracking this issue under the Bug ID listed above in the bug State (Duplicate/XXXX). To check the status of the original bug report, please update your report directly http://bugreport.apple.com and we will provide you with any available information.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!