mfmailcomposer

MFMailComposeViewController dismisses right away

淺唱寂寞╮ 提交于 2019-12-04 22:21:20
The situation is the MFMailComposeViewController was going to be presented. I saw it was presented half-way done, but then it got dismissed. This is the error: _serviceViewControllerReady:error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" This is my source code to present the MFMailComposeViewController: -(void) MailExecute { if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init]; mailViewController

How to create a UITextField like MFMailComposer has?

∥☆過路亽.° 提交于 2019-12-03 14:44:54
问题 I want to create a MFMailComposer like UITextField like when we type an email address it converted into blue round button like shape. I do not want to use Three20's MailComposer. I want to create my own.Any idea how to achieve this? or if there is already a UITextField or whatever control is out there please let me know. EDIT: I've checked three20's TTCatalog demo. And It has all the things I want except a few like when I type an email address manually it's not converted into the blue button

Why MFMailComposer with <img> is not showing the image in mail?

心已入冬 提交于 2019-12-02 21:13:09
I am sending some images in mail using MFMailComposer . I am converting the image to Base64 and using <img> tag to add images to the HTML body(I am not adding it as attachment ). [htmlString appendFormat: @"<img src='data:image/png;base64,%@' width=300 height=200 />", imageAsBase64]; The images are displaying correctly in MFMailComposer , but there are no images displayed in the actual mail which is sent from the MFMailComposer. What should I do to make it work? I had same problem before couple of weeks and I came to know that Gmail is not supporting embedded images. You can see images in

Want to send a email with images and text in the body of email in iOS [closed]

大憨熊 提交于 2019-12-01 14:53:39
In iOS, want to send a email with embedded images and text in the body of the email ( not attachment) using mail composer. Can anybody help ? You can use the HTML content with img tag for doing this. You can use the following code: NSMutableString *imgContent = [[[NSMutableString alloc] initWithString:@"<html><body>"] retain]; UIImage *imageData = [UIImage imageNamed:@"Midhun.png"]; NSData *imageDataInBase64 = [NSData dataWithData:UIImagePNGRepresentation(imageData)]; NSString *base64String = [imageDataInBase64 base64EncodedString]; [imgContent appendString:[NSString stringWithFormat:@"<p><b>

Want to send a email with images and text in the body of email in iOS [closed]

眉间皱痕 提交于 2019-12-01 13:36:13
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . In iOS, want to send a email with embedded images and text in the body of the email ( not attachment) using mail composer. Can anybody help ? 回答1: You can use the HTML content with img tag for doing this. You can

iOS6: MFMailComposeViewController slow to load and flashes black screen; MailCompositionS begins hogging memory

早过忘川 提交于 2019-11-30 11:19:05
On iOS 6, after sending a few email messages (by using MFMailComposeViewController), the email screens become very slow to open- at first opening with none of the fields populated (no Subject, no body, etc.) for a few seconds, and eventually (after sending about 8 messages), a black screen is displayed to the user for a few seconds before the email view controller is properly displayed. The log spits out the following line before each black screen is displayed: [MFMailComposeRemoteViewController: ....] timed out waiting for fence barrier from com.apple.MailCompositionService Also, using

Issue when using MFMailComposeViewController

牧云@^-^@ 提交于 2019-11-30 02:58:40
I have a tricky problem. In one of my app, with over 150.000 downloads... I have a problem which seldom occurs and which I can't seem to figure out. The problem is the following: In a view where the user can share a list via email, I open the mail window using MFMailComposeViewController . However, in some few cases the app seems to get a problem using the mail composer. The user presses the share button, the mail windows slides up, waits about 1-2 sec and then closes again. No content in the mail window, although I do send data to it. I myself have not been able to re-create the problem on

iOS6: MFMailComposeViewController slow to load and flashes black screen; MailCompositionS begins hogging memory

醉酒当歌 提交于 2019-11-29 16:54:04
问题 On iOS 6, after sending a few email messages (by using MFMailComposeViewController), the email screens become very slow to open- at first opening with none of the fields populated (no Subject, no body, etc.) for a few seconds, and eventually (after sending about 8 messages), a black screen is displayed to the user for a few seconds before the email view controller is properly displayed. The log spits out the following line before each black screen is displayed:

MailComposer didFinishWith results doesn't work in Swift 3.0

廉价感情. 提交于 2019-11-29 07:26:08
I converted my app to swift 3.0 and have a problem with MailComposeController . When I call function: `func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?){ controller.dismiss(animated: true, completion: nil) }` first of all I have an error with info: what is strange for my, becouse I copy and paste this method from MFMailComposeViewControllerDelegate . When I change Error to NSError it works, but I receive a warning with info, this method needs to be private to avoid this warning. When I'm in mailComposer and see email

Issue when using MFMailComposeViewController

百般思念 提交于 2019-11-29 00:33:41
问题 I have a tricky problem. In one of my app, with over 150.000 downloads... I have a problem which seldom occurs and which I can't seem to figure out. The problem is the following: In a view where the user can share a list via email, I open the mail window using MFMailComposeViewController . However, in some few cases the app seems to get a problem using the mail composer. The user presses the share button, the mail windows slides up, waits about 1-2 sec and then closes again. No content in the