title: MFMessageComposeViewController on Simulator - canSendText?
body: <p>following situation: I want to send in app SMS. This is my code creating the MFMessageComposeViewController:</p>
  
  <pre><code>-(void) showMessageComposerWithText:(NSString*)messageText telNumber:(NSString*)telNumber composeDelegate:(id)delegate
  {
      MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
      if([MFMessageComposeViewController canSendText])
      {   
          controller.body = messageText;
          controller.recipients = [NSArray arrayWithObject:telNumber];
          controller.messageComposeDelegate = delegate;
  
          [delegate presentModalViewController:controller animated:YES];
      }
  }
  </code></pre>
  
  <p>So I think this is straight forward. When testing in Simulator I get following exception: <code>Application tried to push a nil view controller on target &lt;MFMessageComposeViewController: 0x8a4e090&gt;</code>. I'm also wondering myself why <code>[MFMessageComposeViewController canSendText]</code> returns <code>YES</code> when running the app in the simulator.</p>
  
  <p>When running on the device, everything is working correctly.</p>
  
  <p>I couldn't find anything in the docs/web concerning this strange behavior.</p>
  
  <p>I'm running Xcode 4.3 on OS 10.7.3, Deployment Target is iOS 5.0.</p>
  
  <p>Thanks in advance,
  tubtub</p>