There is a problem when I try to send a list of large recipients (for example, over 40) using MFMessageComposeViewController. In iOS7, it will display a blank white screen for 20 seconds or more before displaying the SMS view. This does not happen for iOS5 and iOS6.
Below is the code I'm using,
NSArray * recipients; for (NSIndexPath * index in selectedRows) { NSDictionary *dictionary = [data objectAtIndex:index.row]; NSString *phoneNum = [dictionary objectForKey:@"contactNum"]; recipients = [NSArray arrayWithObjects:phoneNum, nil]]; } MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init]; if([MFMessageComposeViewController canSendText]) { controller.body = bodyOfMessage; controller.recipients = recipients; controller.messageComposeDelegate = self ; controller.wantsFullScreenLayout = NO; [(id)_delegate presentModalViewController:controller animated:YES]; [[UIApplication sharedApplication] setStatusBarHidden:YES]; }
Below is the message I received when I try to send many.
timed out waiting for fence barrier from com.apple.mobilesms.compose Received memory warning. Received memory warning. Received memory warning. Received memory warning. Received memory warning. Received memory warning. Received memory warning. Received memory warning. Received memory warning.
source share