iphone Native Email Client UI
I have my own UI that renders email. but it re开发者_StackOverflow社区nders only text mails. Now I am extending it to support HTML formatted mails. I wanted to know how Apple does it in native email client and then replicate the same in my App's UI. In particular, I am interested in knowing what UI component is used by the native email client to display the Mail body. All HTML text is rendered properly in it and also you are allowed to edit it. I am trying to replicate the same.
use MFMailComposerViewController
@Bogus boy you have to use MFMailComposeViewController
here is the best tutorial from the apple developers document which will give you every help regarding how to use it and how is it made with a tutorial....its a best one have a look at MailComposer from document. This is the way how we pass html..
MFMailComposeViewController *mailView = [[MFMailComposeViewController alloc] init];
mailView.mailComposeDelegate = self;
[mailView setSubject:@"Good Morning"];
[mailView addAttachmentData: mimeType: fileName:];
NSString *bodyString = [NSString stringWithFormat: @"<html><body>This is place where you place your HTML format</body></html>"];
[mailView setMessageBody:bodyString isHTML:YES];
[self presentModalViewController:mailView animated:YES];
Good Luck!
精彩评论