title: MPMoviePlayerController with UIModalPresentationPageSheet
body: <p>i have a Movie player drawn onto my view controller on my iPad app. The view is shown modally using the UIModalPresentationPageSheet.</p>
  
  <p>The video displays correctly but when full screen, the Done and ratio button seem to do nothing. How do i go about enable these buttons so that the full screen is exited when and ratio changed.</p>
  
  <p>Below is my code that used to create the movie player</p>
  
  <pre><code>NSString *url = [[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4v"];
  NSURL *strURL =[NSURL URLWithString:url];
  
  player = [[MPMoviePlayerController alloc] initWithContentURL:strURL];
  
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willEnterFullscreen:) name:MPMoviePlayerWillEnterFullscreenNotification object:nil];
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willExitFullscreen:) name:MPMoviePlayerDidExitFullscreenNotification object:nil];
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteredFullscreen:) name:MPMoviePlayerDidEnterFullscreenNotification object:nil];
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackFinished:) name:MPMoviePlayerPlaybackDidFinishNotification object:nil];
  [player setMovieSourceType:MPMovieSourceTypeFile];
  
  
  //---play partial screen---
  player.view.frame = CGRectMake(0, 42 , 780, 300);
  [player prepareToPlay]; // this had to be in for it to work
  
  [self.view addSubview:player.view];
  player.shouldAutoplay = NO;
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Dan</p>