iPhone-如何在我的应用程序的电子邮件中嵌入图像? [英] iPhone - how can I embed images in email from my app?

查看:83
本文介绍了iPhone-如何在我的应用程序的电子邮件中嵌入图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在图像中嵌入从我的应用发送的电子邮件?我们的应用程序中可以有一个带有源图像的标签吗?

Is it possible to embed images an email being sent from my app? Can we have an tag with source as an image in our app?

谢谢.

推荐答案

是.您可以使用3.0的邮件API.

Yes. Using 3.0's mail APIs you can.

我不会在这里放置代码,因为它在NDA下.不过,SDK中已对此进行了很好的记录.您需要将图像数据放入一个没有明显记载的NSData中:

I'll not put the code here because it is under the NDA. It is well documented in the SDK though. You need to get the image data into an NSData which is not as obviously documented:

NSData* imageData = UIImagePNGRepresentation(myUIImage);

这篇关于iPhone-如何在我的应用程序的电子邮件中嵌入图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆