Is there a limit on the number of recipients in the MFMessageComposeViewController?

Is there a limit on the number of recipients in the MFMessageComposeViewController?

+3
source share
2 answers

I think there is no specific limit for the number of recipients in MFMessageComposeViewController

As you could see in the code below

toRecipients is an So array that you can try filling out entire contacts that you prefer to check for the number of recipients ...

void sendSMS
{
    if ([MFMessageComposeViewController canSendText]) {
        MFMessageComposeViewController *myMessageComposeViewController = [[MFMessageComposeViewController alloc] init];
        myMessageComposeViewController.messageComposeDelegate = self;
        NSString *bodyString = nil;

        NSMutableArray *toRecipients = [[NSMutableArray alloc]init];
        [toRecipients addObject:@"0933660805"];
        [myMessageComposeViewController setRecipients:(NSArray *)toRecipients];
        [toRecipients release];

        bodyString = [NSString stringWithFormat: @"Message body"];
        [myMessageComposeViewController setBody:bodyString];

        [self presentModalViewController:myMessageComposeViewController animated:YES];
        [myMessageComposeViewController release];
}  
+5
source

Based on the documentation , there are no such restrictions on the number of recipients.

+1
source

All Articles