How to send SMS from an iPhone app without opening the SMS interface?(如何在不打开短信界面的情况下从 iPhone 应用发送短信?)
问题描述
我正在制作一个 iPhone 应用程序,其要求是用户应该能够从 iPhone 应用程序发送 SMS 而无需进入 SMS API 屏幕(即 SMS 的模式视图).
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.
这篇关于如何在不打开短信界面的情况下从 iPhone 应用发送短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在不打开短信界面的情况下从 iPhone 应用发送短信?


基础教程推荐
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01