是否可以为 MFMailComposeViewController 提供自定义视图?
我有一个设计精美的邮件发送页面,我必须实现它。我想使用 MFMailComposeViewController 来完成此任务,但这有它自己的常规视图。我有什么选择?有没有办法在 MFMailComposeViewController 中使用我自己的视图?或者也许是从应用程序发送电子邮件的另一种方式,允许我自定义视图?
谢谢!
I have a nicely designed mail sending page that I have to implement. I would like to use MFMailComposeViewController to achieve this task but this comes with its own regular view. What are my options? Is there a way to use my own view with MFMailComposeViewController? Or maybe another way to send emails from the app that allow me to customize the view?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不得以任何方式更改 MFMailComposeViewController。引用文档:
据我所知,没有其他内置方式可以从设备发送电子邮件。
您唯一的其他选择是让设备联系您自己的服务器,该服务器将转发电子邮件消息,但消息当然不会来自与设备等关联的电子邮件地址。
You may not change MFMailComposeViewController in any way. Quoth the documentation:
As far as I know, there is no other built-in way to send email from the device.
Your only other option would be to have the device contact a server of your own which would forward the email message, but then of course the message wouldn't be coming from the email address associated with the device and such.
阿诺米是正确的。
我们创建了一个应用程序,它使用后端电子邮件服务器发送匿名电子邮件,并且我们有一个自定义前端来收集用户消息。然而,如果您只是认为组合界面需要改造,那么这确实不是一个好方法,并且几乎肯定会让您在提交过程中受到猛烈抨击。
不搞乱界面的最佳理由 -
。用户会质疑任何与苹果电子邮件界面不同的电子邮件界面的真实性。
Anomie is correct.
We created an app which had used a backend email server to send anonymous emails and we had a custom front end to collect the user message. However if you're just thinking that the composition interface needs a makeover it's really not a good approach and almost certainly will get you slammed during the submission process.
Best Reason for not messing with the interface -
. User will question authenticity of any email interface which does not resemble Apple's email interface.