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.
精彩评论