简体   繁体   English

短信到多个号码(iPhone SDK)

[英]SMS to multiple numbers (iPhone SDK)

Is it possible to copy multiple numbers from a table to the clipboard then paste the same to the SMS.app's To-field, like possible using commas after each number? 是否可以将多个数字从表格复制到剪贴板,然后将其粘贴到SMS.app的“收件人”字段,就像在每个数字后面使用逗号一样?

Thanks in advance!! 提前致谢!! :) :)

This is not a full answer, but check out UIPasteboard which allows you to manipulate the system clipboard. 这不是一个完整的答案,但请查看UIPasteboard,它可以让您操作系统剪贴板。 You might try adding multiple NSURL 'sms:...' "items" to the general pasteboard to see if the sms app interprets them appropriately. 您可以尝试将多个NSURL'sms:...'“ items”添加到常规粘贴板上,以查看sms应用是否正确解释了它们。 Please reply and let me know if it works. 请回复,让我知道它是否有效。

Also check out MFMailComposeViewController. 还要签出MFMailComposeViewController。 I don't think it will internally support SMS, but you could use it to email multiple SMS numbers using a general SMS gateway, or use a lookup table of cell phone providers by number allocation block to use individual providers' gateways. 我不认为它会在内部支持SMS,但是您可以使用它通过通用SMS网关通过电子邮件发送多个SMS号码,或者通过号码分配块使用手机提供商的查找表来使用各个提供商的网关。 Advantage of using MFMailComposeViewController is that you don't need to quit your app. 使用MFMailComposeViewController的优点是您无需退出应用程序。

There are some "free text message", "free MMS message" apps on the app store that seem to use the later approach. 应用程序商店上有一些“免费短信”,“免费MMS消息”应用程序似乎在使用后一种方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM