Is it possible to have a custom view for MFMailComposeViewController?

可紊 提交于 2019-12-01 10:57:01

问题


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!


回答1:


You may not change MFMailComposeViewController in any way. Quoth the documentation:

Important: The mail composition interface itself is not customizable and must not be modified by your application.

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.




回答2:


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.



来源:https://stackoverflow.com/questions/5976507/is-it-possible-to-have-a-custom-view-for-mfmailcomposeviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!