如何拍摄照片并将其作为电子邮件附件发送到iOS [英] How to take a picture and send it as an email attachment in iOS

查看:410
本文介绍了如何拍摄照片并将其作为电子邮件附件发送到iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我可以设置一个按钮拍摄照片,但我不确定如何将此作为电子邮件的附件传递到同一视图中。

该视图是一个报价,允许

Currently, I can set a button to take a picture, but I'm unsure how to pass this as an attachment for an email in the same view.
The view is for a quote and allows the user to enter data into a few fields then has a button to email said data.

推荐答案

也许这个链接会满足你的要求对于问题的后半部分...

Maybe this link would satisfy your requirement for the second half of the question...

http://www.ericd.net/2009/04/sending-email-from-iphone-application.html

    UIImage *myImage = [UIImage imageNamed:@"mobiletuts-logo.png"];
    NSData *imageData = UIImagePNGRepresentation(myImage);
    [mailer addAttachmentData:imageData mimeType:@"image/png"   fileName:@"mobiletutsImage"];

礼貌:

http://mobile.tutsplus.com/tutorials/iphone/mfmailcomviewviewcontroller/

这篇关于如何拍摄照片并将其作为电子邮件附件发送到iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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