iOS status bar orientation after play video fullscreen

I have an issue when play youtube video on iOS 6.1.2. That is, after play vieo at full screen mode at landscape (my app just supports portrait mode), or if user press Done during playing video, the status bar will not rotate. like this: enter image description here

Now I register the UIMoviePlayerControllerDidExitFullscreenNotification observer to change the rotation of statusbar and it work fine on iOS 6.1 and below, but not in iOS 6.0.1

  • How do I catch the MPMoviePlayer next button click event while in fullscreen mode on the iPad?
  • Play YouTube videos in iPhone app without using UIWebView?
  • My iPhone Video Only Plays in Portrait Mode
  • how to provide only one view with landscape for MPMoviePlayerController in IOS6
  • MPMoviePlayerController fullscreen mode issue
  • Multiple MPMoviePlayerControllers on iOS 3.2/4.0
  • Please tell me if I make any mistake. Or any other solution to fix the statusbar orientation is welcome.

     [[NSNotificationCenter defaultCenter] addObserver:self
    - (void)youTubeVideoExit:(id)sender {
        [[UIApplication sharedApplication] setStatusBarOrientation:UIDeviceOrientationPortrait animated:NO];