My app has a feature to allow user sending SMS to their contacts who haven't register our app to invite them. I implemented it as follows several weeks ago and it works well:
if ([MFMessageComposeViewController canSendText]) {
MFMessageComposeViewController *controller = [MFMessageComposeViewController new];
NSDictionary *contact = self.notRegisterdUser[index]; // got from reading user's contacts if allowed
controller.recipients = @[contact.allKeys[0]];
controller.body = @"some message";
controller.messageComposeDelegate = self;
[self presentViewController:controller animated:YES completion:nil];
}
But yesterday I found the feature was broken as it did not show Cancel button like this:
I have tested it on iOS 8.1, 8.2, 8.3 and 8.4, it exist for all. Is there something changed or I did wrong?