iPhone: How to disable editing when MFMessageComposeViewController shows up

∥☆過路亽.° 提交于 2019-12-10 11:58:35

问题


Is it possible to prevent editing when MFMessageComposeViewController shows up?

'Cause I want the body of SMS can't be changed by user and I think it's still legal.

Please help!


回答1:


No the user has final say when using the MFMessageComposeView. Your app is also prohibited from changing the content/recipient/body of the email when the view slides up.

If you could do this it would be easy to paste in a different recipient, sniff the content provided by the user etc. etc. (especially in the Message App, you could swap the phone number and do terrible things.). I guess this is the logic behind, you get to pre-populate the message, but the user decides from there on and until "Cancel" or "Send".

You should probably build a web service where you have control over the data when it hits the server and make an interface for that on the phone.



来源:https://stackoverflow.com/questions/5754305/iphone-how-to-disable-editing-when-mfmessagecomposeviewcontroller-shows-up

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