objective-c - MFMailComposeViewController : subject/text non editable?

标签 objective-c ios email mfmailcomposeviewcontroller

我需要开发一个能够发送邮件的应用程序,其中包含不允许用户编辑的自动内容(主题/文本)。可以吗?

谢谢你的建议

最佳答案

答案是否定的。如果要使用MFMailComposeViewController类,必须注意Apple's documentation中的这段:

Important The mail composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is not allowed to make further changes to the email content. The user may still edit the content using the interface, but programmatic changes are ignored. Thus, you must set the values of content fields before presenting the interface.

用户可以(并且应该能够)在发送电子邮件之前更改他/她希望的任何内容。

如果您不想遵循 Apple 制定的这些规则,您可以在 iOS 应用程序中使用其他邮件框架。

关于objective-c - MFMailComposeViewController : subject/text non editable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10995720/

相关文章:

objective-c - 给私有(private)方法和属性添加前缀

iphone - 如何正确设置 UIAccessibilityElement 的 accessibilityFrame?

html - 使用表格而不使用图像创建跨客户端电子邮件 Logo

email - Grails 邮件 Exchange 服务器配置

ios - 尝试使用 Xcode 8 Beta 3 运行我的应用程序时出错

java - 连接到本地 POP3 收件箱 Java

ios - Swift 相当于 arrayWIthObjects?

iOS 更改 BackgroundImage

ios - 在 UINavigationViewController 上推送(推送 segue) View 后方向不会改变

ios - 如何在 NSUserdefaults 中保存 NSMutablearray