title: MFMailComposeViewController - iPad
body: <p>I've setup a MFMailComposeViewController and it works just fine on the iPhone, but on the iPad it crashes, saying:</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target...
  </code></pre>
  
  <p>So why would this create a nil modal view?</p>
  
  <pre><code>    MFMailComposeViewController *message = [[MFMailComposeViewController alloc] init];
      [message setMessageBody:@"My message here"  isHTML:NO];
      [message setToRecipients:[NSArray arrayWithObject:@"my@domain.com"]];
      [message setSubject:@"Request Info"];
      message.mailComposeDelegate = self;
      if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
          message.modalPresentationStyle = UIModalPresentationFormSheet;
      [self presentModalViewController:message animated:YES];
      [message release];
  </code></pre>
  
  <p>Any ideas?</p>