title: iPad + UIWebView + presentModalViewController
body: <p>I have a very basic view controller class, created via interface builder. it only has one view, which is a UIWebView (see here: <a href="http://i55.tinypic.com/xdax01.png" rel="nofollow">http://i55.tinypic.com/xdax01.png</a>).</p>
  
  <p>Somewhere in my app i want to open this view controller as modal dialog via <code>presentModalViewController</code>. This is my code to achieve this:</p>
  
  <pre><code>self.viewController.modalPresentationStyle= UIModalPresentationFormSheet;
  
  WebController* dvc= [[WebController alloc] initWithNibName:@"WebController" bundle:nil];
  
  [self.viewController presentModalViewController:dvc animated:YES];
  </code></pre>
  
  <p>The modal dialog is shown, but unfortunately it is shown full screen, instead of the smaller dimensions of <code>UIModalPresentationFormSheet</code>. When i replace the above code with this one:</p>
  
  <pre><code>self.viewController.modalPresentationStyle= UIModalPresentationFormSheet;
  
  MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
  
  [self.viewController presentModalViewController:mailViewController animated:YES];
  </code></pre>
  
  <p>The app will correctly show a modal dialog with form sheet size (not fullscreen).</p>
  
  <p>What do i have to do in order to present my view controller class in the smaller form sheet size instead of fullscreen?</p>