2012-05-10 78 views

回答

1
MFMailComposeViewController *composer = [[MFMailComposeViewController alloc] init]; 
    composer.mailComposeDelegate = self; 

    [composer setMessageBody:message isHTML:YES]; 
    NSMutableString *body = [NSMutableString string]; 
    [body appendString:@"<h1>Hello User!</h1>\n"]; 
    [body appendString:@"<a href=\"http://www.mysite.com/path/to/link\">Click Me!</a>\n"]; 
    [composer setMessageBody:body isHTML:YES]; 

希望这适用于你。快乐编码:)

1

是的,它是可能的,你能做到这样:

MFMailComposeViewController *composer = [[MFMailComposeViewController alloc] init]; composer.mailComposeDelegate = self; 
[composer setSubject:subject]; 
[composer setMessageBody:message isHTML:YES]; 
//Message is just a NSString with HTML Content and you can have all the HTML Contents in it.