gpt4 book ai didi

iphone - MFMessageComposeViewController 中的收件人数量有限制吗?

转载 作者:行者123 更新时间:2023-12-03 19:36:56 25 4
gpt4 key购买 nike

MFMessageComposeViewController 中的收件人数量有限制吗?

最佳答案

我认为,MFMessageComposeViewController中的接收者数量没有明确的限制

正如您在下面的代码中看到的

toRecipients 是一个数组因此,您可以尝试填写尽可能多的联系人,以检查收件人数量的限制...

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];
}

关于iphone - MFMessageComposeViewController 中的收件人数量有限制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5933218/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com