从 iPhone 应用程序向用户发送短信
我正在创建一个应用程序,用户可以在其中找到交易,以及他是否想通过短信或电子邮件接收交易详细信息。
用户如何在不使用网络服务的情况下从我的应用程序获取短信和邮件(如果有可用的示例代码,请帮助我。
提前致谢
i am creating an application where user will find the deal and if he want to receive the deal detail by sms or email.
how user will get sms and mail from my application without using web service if any sample code is available then please help me.
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于邮件,您可以查看:MFMailComposeViewController 及其委托 MFMailComposeViewControllerDelegate。
文档在这里:
https://developer.apple.com/ library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html
用于发送短信,MFMessageComposeViewController。
文档在这里:
https://developer.apple.com/库/ios/#documentation/MessageUI/Reference/MFMessageComposeViewController_class/Reference/Reference.html
For mail you can check out this: MFMailComposeViewController and its delegate MFMailComposeViewControllerDelegate.
Documentation here:
https://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html
For sending SMS, MFMessageComposeViewController.
Documentation here:
https://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMessageComposeViewController_class/Reference/Reference.html
Apple 提供了 MFMessageComposeViewController ,也可用于发送短信。本文应该可以解决您的问题 - 如何以编程方式发送短信在 iOS 中
Apple provides
MFMessageComposeViewController
which can be used to send SMS too. This article should solve your problem - How to Send an SMS Progammatically in iOS