自定义“电子邮件”在UIDocumentInteractionController中的动作 [英] Custom "Email" action in UIDocumentInteractionController

查看:185
本文介绍了自定义“电子邮件”在UIDocumentInteractionController中的动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法向UIDocumentInteractionController提供的操作列表添加自定义操作?

Is there any way to add a custom action to the list of actions provided by the UIDocumentInteractionController?

我想在列表中添加一个电子邮件操作。我知道我可以使用MFMailComposeViewController发送带有附件的电子邮件,但问题不在于如何将作为附件发送文件,问题是UI之一。我有一个行动UIBarButtonItem,它提供了UIDocumentInteractionController提供打印和打开iBooks的选项。很棒...但是我也需要一个单独的UIBarButtonItem来发送附加到电子邮件的文件。对于用户来说,稍微有点混乱:

I would like to add an "Email" action to the list. I know I can use the MFMailComposeViewController to send email with attachments, but the problem is not how to send a file as an attachment the problem is one of UI. I have an "Action" UIBarButtonItem which brings up the UIDocumentInteractionController providing options for printing and opening in iBooks. Great... but I also need a separate UIBarButtonItem for sending the file attached to an email. It's slightly confusing to users to see something like this:

这不仅仅是让用户感到困惑,而是真的不是一个理想的UI。最好将电子邮件作为UIDocumentInteractionController列表中的一个选项。

It's not just confusing to users, but really not an ideal UI. It would be best to have "Email" as one of the options in the UIDocumentInteractionController's list.

任何建议?

Kenny

推荐答案

此时您无法将文件添加到文档交互控制器。

You cannot add items to the Document Interaction Controller at this time.

这篇关于自定义“电子邮件”在UIDocumentInteractionController中的动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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