I have a simple method that gets one argument and then sends a message. It is not working.
Code:
- (void)sendSMS:(NSString *)text { MFMessageComposeViewController *viewController = [[MFMessageComposeViewController alloc] init]; viewController.body = text; viewControllerM.mailComposeDelegate = self; [self presentViewController:viewController animated:YES completion:nil]; }
What's wrong?