title: Problem MFMessageComposerViewController in iPhone sdk
body: <p>I am trying to implement a SMS application. In that when I tried to send my sms I got an exception at  [self.navigationController presentModalViewController:picker animated:YES];. I am very new to this. Can you guys please help me?. My code is as follows.</p>
  
  <pre><code>MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
  picker.delegate = self;
  
  picker.recipients = [NSArray arrayWithObject:@"123456789"]; // your recipient number or self for testing
  picker.body = @"test from OS4";
  
  [self.navigationController presentModalViewController:picker animated:YES];
  [picker release];
  </code></pre>
  
  <p>My Log message is as follows,</p>
  
  <pre><code> Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target &lt;UINavigationController: 0x5b2c120&gt;.
  </code></pre>
  
  <p>Thanks in Advance,
  S.</p>