1

I'm using the following code to send in-app sms.

messageController = [MFMessageComposeViewController new];

messageController.messageComposeDelegate = self;
[messageController setRecipients:[NSArray arrayWithObjects:...]];
[messageController setBody:@"1"];

[self presentViewController:messageController animated:YES completion:nil];

Recipients not display

any suggestion to remove it?

iproblem with this black box

milad sh
  • 139
  • 1
  • 12

2 Answers2

0

I believe this may be a problem with the setting of the recipients. You may want to comment out the [messageController setRecipients:[NSArray arrayWithObjects:...]];and see if you can manually select recipients. If this works, then try adding the recipients back in.

The setRecipients takes an array of NSStrings. You may want to also check the format of the phone numbers passed in.

Jake Chasan
  • 6,290
  • 9
  • 44
  • 90
0

Just add the code before opening Composer view

 [[UINavigationBar appearance] setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];

Please, let me know if you facing issue.

Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75