title: MFMessageComposeViewController dismiss keyboard
body: <p>i'm having troubles with my MFMessageComposeViewController. I would like to use SMS in-app. 
  Everything work fine for sending SMS, so far so good. But when i hit the cancel button (or send button too) top of my view disapeared but the keyboard did not. It's maybe because i don't use modale view, but only a addSubview.</p>
  
  <pre class="lang-c prettyprint-override"><code>-(void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
  {
  
      if (result == MessageComposeResultCancelled)
      {
          NSLog(@"Message annulé");
          [controller resignFirstResponder];
          [controller.view removeFromSuperview];  
          [controller release]; 
       }
      else if (result == MessageComposeResultSent)
      {
          NSLog(@"Message envoyé");
          ...
      }
      else 
      {
          NSLog(@"Message non envoyé");
          ...
      }
  }
  
  -(void)sendSMS:(NSString *)bodyOfMessage :(Phone *)recipient
  {
      MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
  
      if([MFMessageComposeViewController canSendText])
      {
          MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
          picker.messageComposeDelegate = self;
  
          NSMutableArray *toRecipients = [[NSMutableArray alloc]init];
          [toRecipients addObject:recipients.phoneNumber];
          [picker setRecipients:(NSArray *)toRecipients];
          [toRecipients release];
  
          NSString *bodyString = nil;
          bodyString = bodyOfMessage;
          [picker setBody:bodyString];
  
          [self addSubView:picker.view];
          [picker release];
       }  
  }
  </code></pre>
  
  <p>Any idea ? Had I to use only modalView ?</p>
  
  <p>sorry for spelling mistake...</p>
  
  <p>Thank you. Tommy</p>