title: iPhone prevent rotation of keyboard to landscape
body: <p>So, I'm putting some controls over an MPMoviePlayerController and I'm intending this to be used in portrait mode, simply by using video that is shot vertically.  My only problem is that for text entry the keyboard comes up in landscape.</p>
  
  <p>Now, I realize that there is an undocumented way to set the orientation of the player, but I'd rather not try this and get rejected at the app store. (FYI this is it):</p>
  
  <pre><code>[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO]; // not legal?
  </code></pre>
  
  <p>I've tried overriding the autorotate method in my view controller: </p>
  
  <pre><code>   -(BOOL)shouldAutorotateToInterfaceOrientation:   (UIInterfaceOrientation)interfaceOrientation { return NO; }
  </code></pre>
  
  <p>but it once the movie player starts playing it takes over and doesn't respect this.</p>
  
  <p>I'm just wondering if anyone has any other ideas on a legal way to keep the keyboard in portrait even while the movie player wants to take the system to landscape.</p>
  
  <p>thanks,
  Pat</p>