如何从iPhone应用程序发送短信,而无需打开SMS界面?

如何从iPhone应用程序发送短信,而无需打开SMS界面?

问题描述:

我正在制作一个iPhone应用程序,其中的要求是,用户应该能够从iPhone应用程序发送短信,而无需进入SMS API屏幕(即短信模式视图)。

I am making an iPhone app, where the requirement is such that user should be able to send SMS from iPhone app without going into the SMS API screen (i.e. the modal view for SMS).

我们不希望用户点击发送按钮。

邮件正文和邮件收件者是预先固定的。

The message body and message recipients are pre-fixed.

我是新手。

我该怎么办?应该怎么办?

How can I do this? What should be done?

请帮助和建议。

谢谢。

你唯一的选择(如果你想提交到App Store至少)是使用 MFMessageComposeViewController 。我认为这个想法是,应用程序不能发送短信没有用户的许可。

Your only option (if you want to submit to the App Store at least) is to use MFMessageComposeViewController. I think the idea is so that apps can't send SMS without the users permission.