I use MFMailComposeViewController canSendMail in my application, everything works fine, but if there are no accounts on the iPhone or iPad, it returns the standard warning that I would like to change. If I put a warning in another, it will return 2 warnings. Is there a way to change the standard warning it returns? Or at least change the text in it?
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; if ([MFMailComposeViewController canSendMail]) { controller.mailComposeDelegate = self; controller.navigationBar.tintColor = [UIColor grayColor]; NSArray *toRecipients = [NSArray arrayWithObject:@" info@info.nl "]; [controller setToRecipients:toRecipients]; [controller setSubject:@"bericht van info"]; [self presentModalViewController:controller animated:YES]; [controller release]; } else { }
Dawid source share