在目标c中将图像添加到URL Outlook方案

问题描述

我正在尝试附加图像或将其插入ms-putlook方案的主体中。 我试图这样做:

    for item in ITEMS {
     for photo in item.photosCollection{
      let htmlBody = "<div style=\"width:450px;height:797px;\"><img src=\(UIImageJPEGRepresentation(photo,1.0)!) style=\"width:100%;height:100%;\"></div>"

    // Encode the string for URL.
        let encodedBody = htmlBody.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlHostAllowed)!
        body += encodedBody
    }}
    
    let stringURL = "ms-outlook://compose?subject=\(setSubject)&body=\(body)"

但是它仅将图像作为字符串放在正文中。有人有其他选择吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)