【发布时间】:2023-03-25 01:34:01
【问题描述】:
我在电子邮件中附加图像。但是我们如何在电子邮件中附加 html 文件? 这是我在电子邮件中附加图像文件的代码。
UIImage *artworkImage = viewImage;
NSData *artworkJPEGRepresentation = nil;
if (artworkImage)
{
artworkJPEGRepresentation = UIImageJPEGRepresentation(artworkImage, 0.7);
}
if (artworkJPEGRepresentation)
{
[composeVC addAttachmentData:artworkJPEGRepresentation mimeType:@"image/jpeg" fileName:@"Image.jpg"];
}
[self presentModalViewController:composeVC animated:YES];
[composeVC release];
我们如何以相同的方式附加 HTML。
我不想将 HTML 设置为正文,我想将 HTML 作为附件发送。
请就这个问题指导我。
【问题讨论】:
标签: iphone