Writing HTML in email Newbie [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionIs there any sample application/tutorial that demonstrates how to w开发者_如何转开发rite HTML
code using [mailComposer setMessageBody:nil isHTML:_________];
I simply want to write some HTML
code here, how do i code it ?
Just write your HTML code as NSString
and set it to the composer body. Then set isHTML
to YES
:
MFMailComposeViewController *composer = [[MFMailComposeViewController alloc] init];
composer.mailComposeDelegate = self;
NSString *emailBody = @"<p><b>Hello World</b></p>";
[picker setMessageBody:emailBody isHTML:YES];
RTFM ;)
精彩评论