记得要继承MFMessageComposeViewControllerDelegate协议
if (phoneNum!=nil&&![phoneNum isEqualToString:@""])
{
if (phoneNum.length>13) {
phoneNum= [phone substringToIndex:11];//截取下标11之前的字符串
}
send_index=0;
MFMessageComposeViewController *picker =[[MFMessageComposeViewController alloc] init];
if ([MFMessageComposeViewController canSendText])
{
picker.messageComposeDelegate = self;
NSMutableArray *substrings = [NSMutableArray array];
[substrings addObject:storeinfoModel.storetel];
[substrings addObject:@"13806512943"];//可添加多个电话号码,群发
[picker setRecipients:substr