title: MFMessageComposeViewController sms sent delegate
body: <p>I implemented in my app <strong>MFMessageComposeViewController</strong> for send sms. It works well, but I do not know if it is possible to know when the message is actually sent.</p>
  
  <pre><code>-(void)sendSMS:(NSString *)bodyOfMessage recipientList:(NSArray *)recipients {
  
      MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
  
      if([MFMessageComposeViewController canSendText]) {
  
        controller.body = bodyOfMessage;    
        controller.recipients = recipients;
        controller.messageComposeDelegate = self;
        [self presentModalViewController:controller animated:YES];
  
      }
  }
  
  - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result {
  
    [self dismissModalViewControllerAnimated:YES];
  
    if (result == MessageComposeResultCancelled) {
  
      NSLog(@"Message cancelled");
  
    } else if (result == MessageComposeResultSent) {
  
      NSLog(@"Message sent");
    }
  
  }
  </code></pre>
  
  <p><strong>if (result == MessageComposeResultSent)</strong> corresponds only to the button "send" but not really a warning if the message has been sent. Do you know if there is some way to delegate or know if the SMS was sent or not?</p>
  
  <p>Thanks a lot!</p>