MFMailComposeViewController 并取消“保存”行动表?

发布于 2024-08-29 06:23:27 字数 287 浏览 5 评论 0原文

我在我的 iPhone 应用程序中使用 MFMailComposeViewController 。我注意到,如果我在正文中输入任何文本,然后按取消按钮,系统会提示我一个操作表,其中包含保存/不保存未发送消息的选项。我有两个问题:

  1. 我可以以编程方式阻止“保存/不保存操作表”的出现吗?MFMailComposeViewControllerDelegate 似乎没有任何类似内容

  2. 如果我保存,邮件保存到哪里?我查看了我的邮件帐户,没有看到任何“草稿”文件夹中保存有任何内容。

i am using MFMailComposeViewController inside my iphone app. I notice that if i enter any text in the body and then press the cancel button, i am prompted with an action sheet with an option to save/don't save the unsent message. I have two questions:

  1. can I programmatically prevent the "save/don't save action sheet from appearing? MFMailComposeViewControllerDelegate doesn't appear to have anything along those lines

  2. if i do save, where is the mail saved to? i looked in my mail accounts and didn't see anything saved in any of the "draft" folders.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是你 2024-09-05 06:23:28
  1. 不,您无法避免操作表的出现。它被添加到 iOS 4.x 中,准确地说,是为了避免在编写长电子邮件时无意中点击“取消”按钮,我认为这是一个好主意。
  2. 它保存在用于撰写电子邮件的帐户的“草稿”文件夹中(通常是您在设备的“设置”中注册的“默认帐户”)。我刚刚尝试使用几个应用程序,效果很好。
  1. No, you can't avoid the action sheet appearing. It's been added in iOS 4.x to, precisely, avoid tapping on the "Cancel" button inadvertently when writing a long email, which I think it's a good idea.
  2. It is saved in "Drafts" folder of the account used to compose the e-mail (normally, your "default account" as it is registered in the Settings of your device). I've just tried using a couple of apps and it works.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文