我需要开发一个能够发送邮件的应用程序,其中包含不允许用户编辑的自动内容(主题/文本)。可以吗?
谢谢你的建议
最佳答案
答案是否定的。如果要使用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/