mfmailcomposeviewcontroller

Swift 5 - Email Class Helper / Manager

非 Y 不嫁゛ 提交于 2021-02-10 16:56:31
问题 Edit: Big thanks to Paulw11 for helping me solve this issue. I've added the full code here for easy reuse: Class: import UIKit import MessageUI struct Feedback { let recipients: [String] let subject: String let body: String let footer: String } class FeedbackManager: NSObject, MFMailComposeViewControllerDelegate { private var feedback: Feedback private var completion: ((Result<MFMailComposeResult,Error>)->Void)? override init() { fatalError("Use FeedbackManager(feedback:)") } init?(feedback:

Swift 5 - Email Class Helper / Manager

空扰寡人 提交于 2021-02-10 16:55:59
问题 Edit: Big thanks to Paulw11 for helping me solve this issue. I've added the full code here for easy reuse: Class: import UIKit import MessageUI struct Feedback { let recipients: [String] let subject: String let body: String let footer: String } class FeedbackManager: NSObject, MFMailComposeViewControllerDelegate { private var feedback: Feedback private var completion: ((Result<MFMailComposeResult,Error>)->Void)? override init() { fatalError("Use FeedbackManager(feedback:)") } init?(feedback:

MFMailcomposeviewcontroller send button is disabled

大兔子大兔子 提交于 2021-01-22 05:03:48
问题 Has anyone faced an issue where the MFMailcomposeviewcontroller send button is disabled/grayed out? The cancel button works perfectly fine. It seems like a new bug? 回答1: This could happen in case native Mail application is removed from iPhone (allowed starting from iOS 10). In this case system Setting missing "Mail" setting item and system probably cannot get configuration of default email account. At the same moment MFMailComposeViewController.canSendMail() return true , so I did not find

MFMailcomposeviewcontroller send button is disabled

元气小坏坏 提交于 2021-01-22 05:03:20
问题 Has anyone faced an issue where the MFMailcomposeviewcontroller send button is disabled/grayed out? The cancel button works perfectly fine. It seems like a new bug? 回答1: This could happen in case native Mail application is removed from iPhone (allowed starting from iOS 10). In this case system Setting missing "Mail" setting item and system probably cannot get configuration of default email account. At the same moment MFMailComposeViewController.canSendMail() return true , so I did not find

MFMailcomposeviewcontroller send button is disabled

一曲冷凌霜 提交于 2021-01-22 05:03:05
问题 Has anyone faced an issue where the MFMailcomposeviewcontroller send button is disabled/grayed out? The cancel button works perfectly fine. It seems like a new bug? 回答1: This could happen in case native Mail application is removed from iPhone (allowed starting from iOS 10). In this case system Setting missing "Mail" setting item and system probably cannot get configuration of default email account. At the same moment MFMailComposeViewController.canSendMail() return true , so I did not find

Wrong text color in buttons when sharing with WhatsApp via UIActivityViewController

萝らか妹 提交于 2020-08-05 18:45:50
问题 When I share an text to WhatsApp with the UIActivityViewController the second screen of the sharing, for my case, has the wrong button colors. The first screen is OK. This issue has been discussed a lot of times and one great bucket of answers can be found here: Cannot set text color of Send and Cancel buttons in the mail composer when presented from the UIActivityViewController in iOS7 The answer fixes for me the button colors of: MFMailComposeViewController And the first screen when sharing

Wrong text color in buttons when sharing with WhatsApp via UIActivityViewController

我只是一个虾纸丫 提交于 2020-08-05 18:45:10
问题 When I share an text to WhatsApp with the UIActivityViewController the second screen of the sharing, for my case, has the wrong button colors. The first screen is OK. This issue has been discussed a lot of times and one great bucket of answers can be found here: Cannot set text color of Send and Cancel buttons in the mail composer when presented from the UIActivityViewController in iOS7 The answer fixes for me the button colors of: MFMailComposeViewController And the first screen when sharing

PDF and MFMailComposeViewController

主宰稳场 提交于 2020-01-23 07:45:34
问题 Writing the part of the app that allows the user to generate a pdf and send it. Seems to be working fine. The sent PDF opens fine on the MAC, but on the iPhone it just keeps loading and never opens. Created a pdf document with the help of Ray Wenderlich Tutorial and sent it out through a modal view controller with a instance of an MFMailComposeViewController. WTF am i doing wrong. Update: The PDF also opens fine on the Ipad. Could the problem be somewhere in the code for creating the PDF?

PDF and MFMailComposeViewController

筅森魡賤 提交于 2020-01-23 07:45:29
问题 Writing the part of the app that allows the user to generate a pdf and send it. Seems to be working fine. The sent PDF opens fine on the MAC, but on the iPhone it just keeps loading and never opens. Created a pdf document with the help of Ray Wenderlich Tutorial and sent it out through a modal view controller with a instance of an MFMailComposeViewController. WTF am i doing wrong. Update: The PDF also opens fine on the Ipad. Could the problem be somewhere in the code for creating the PDF?

How to prevent crash on Cancel of MFMailComposeViewController?

荒凉一梦 提交于 2020-01-21 02:26:27
问题 Somewhere: if([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *email_vc = [[MFMailComposeViewController alloc] init]; email_vc.mailComposeDelegate = self; [email_vc setSubject:subject]; [email_vc setMessageBody:message isHTML:FALSE]; [email_vc setToRecipients:recipients]; [self presentModalViewController:email_vc animated:FALSE]; [[UIApplication sharedApplication] setStatusBarHidden:TRUE]; [email_vc release]; } else ... Somewhere else: - (void)mailComposeController: