开发者

How to insert a UIImage into an e-mail with html content?

I'm sending mails thanks to the MFMailComposeV开发者_JAVA技巧iewController API, and I manage to add uiimages in attachment, but I'd like to insert my uiimage into html code in my e-mail, any idea of what kind of conversion I should use for my image ?

Thanks.


First, convert the image into PNG (UIImagePNGRepresentation) or JPEG (UIImageJPEGRepresentation) data.

Then, call -addAttachmentData:mimeType:fileName: on the mail compose view controller with that PNG/JPEG data.

Your image will be shown as an attachment.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜