开发者

Writing HTML in email Newbie [closed]

开发者 https://www.devze.com 2023-04-09 03:51 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

Improve this question

Is 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 ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消