我面临一个向多个联系人发送消息的问题:
301 up contacts :消息应用程序未打开,如果我们多次单击邀请,则 iMessage 正在打开,但加载消息需要更多时间(2 分钟)
351 up contacts :消息打开时显示黑色的新消息屏幕,然后返回我们的应用程序而不打开消息屏幕。
这是我的代码:联系人是电话号码数组
NSMutableArray *contacts = [NSMutableArray array];
for (User *user in users) {
if (user.phone.length) {
NSString *strphonenumber = [NSString stringWithFormat:@"%@",user.phone];
[contacts addObject:strphonenumber];
}
}
MFMessageComposeViewController *messanger = [[MFMessageComposeViewController alloc]init];
messanger.messageComposeDelegate = self;
messanger.recipients = contacts;
messanger.body = [NSString stringWithFormat:@“body”;
[self presentViewController:messanger animated:YES completion:NULL];
我收到此错误:
<CKSMSComposeRemoteViewController: 0x12802f810> timed out waiting for fence barrier from com.apple.mobilesms.compose