如何从MFMailComposeViewController获取电子邮件地址 [英] How to get email address from MFMailComposeViewController

查看:803
本文介绍了如何从MFMailComposeViewController获取电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序通过使用MFMailComposeViewController 发送电子邮件,一切正常。但是,发送电子邮件后,需要存储收件人地址以进一步处理。据我所知,这里没有API。

Application is sending email by using MFMailComposeViewController, everything works just fine. However after sending email, the recipient address needs to be stored for further processing. As far as I can tell, there is no API for this.

如何获取发送消息的电子邮件地址?

How do I get the email address where message was sent to?


  • 我应该子类 MFMailComposeViewController并覆盖某些东西吗?这是什么?

  • 我可以通过查看MFMailComposeViewController 视图层次结构找到电子邮件地址吗?我会在那里寻找什么?

  • Should I subclass MFMailComposeViewController and override something? What would that be?
  • Could I find email address by looking at MFMailComposeViewController view hierarchy? What would I be looking for there?

任何其他想法?

推荐答案

找出部分答案,详情如下:

Figured out a partial answer, here's the details:

http://jomnius.blogspot.com/2011/02/how-to-find-mfmailcomposeviewcontroller.html

问题:它找到收件人电子邮件地址,但只有适合大约35个字符的文本字符串。否则,您只能找到一个摘要字符串,如aaa@aaa.aa& 2 more ...。那么这种情况下实际的电子邮件地址在哪里?

Problems: it finds the recipient email address(es), but only if that fits in about 35 character text string. Otherwise you find only a summary string like "aaa@aaa.aa & 2 more...". So where are the actual email addresses in this case?

这篇关于如何从MFMailComposeViewController获取电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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