You have a couple of issues in your code - most importantly, you're not initializing your MFMessageComposeViewController
correctly. You need to call alloc
and init
.
MFMessageComposeViewController *textSheet = [[MFMessageComposeViewController alloc] init];
You could also tidy up your recipients list by using a literal array:
textSheet.recipients = @[ @"0549999999", @"0548888888" ];
Finally, your nil
that you're passing for the completion block should not be capitalized:
[self presentViewController:textSheet animated:YES completion:nil];