title: With UIPresentationFormSheet, why doesn't my view move above the keyboard when it is up?
body: <p>Apple says:</p>
  
  <blockquote>
    <p>UIModalPresentationFormSheet
    The width and height of the presented view are smaller than those of the screen and the view is centered on the screen. <strong>If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible.</strong> All uncovered areas are dimmed to prevent the user from interacting with them.</p>
  </blockquote>
  
  <p>But my view doesn't move up when the keyboard is visible. I basically want to present a textview modally above the keyboard so the user can enter text and then hit send (in a nav bar button on the presented view.)</p>
  
  <p>My presenting view is a <code>UISplitViewController</code> (not one of its children) and I'm presenting <code>UINavigationController</code> who's top view controller is basically a <code>UITextView</code>. Rotation works, but the presented view is overlapped by the keyboard in both orientations.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/2457947/how-to-resize-a-uipresentationformsheet">some</a> <a href="https://stackoverflow.com/questions/4266581/uimodalpresentationformsheet-resizing-view">questions</a> <a href="https://stackoverflow.com/questions/3372333/ipad-keyboard-will-not-dismiss-if-modal-view-controller-presentation-style-is-ui/4455505#4455505">asking</a> how to resize the presented view in this case, which is nice, but I don't want to have to make assumptions by resizing manually in the presenter or in the presented view. It seems like it should just pick a decent (undocumented) size just move it up automatically when the keyboard shows.</p>
  
  <p>My presenting code looks like this:</p>
  
  <pre><code>MyViewController *vc = [[MyViewController alloc] init];
  UINavigationController *nav = [[[UINavigationController alloc] initWithRootViewController:vc] autorelease];
  nav.modalPresentationStyle = UIModalPresentationFormSheet;
  [self.splitViewController presentModalViewController:nav animated:YES];
  </code></pre>