开发者

Writing HTML in email Newbie [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜