从 iPhone 应用程序向用户发送短信

发布于 2025-01-04 02:53:33 字数 120 浏览 3 评论 0原文

我正在创建一个应用程序,用户可以在其中找到交易,以及他是否想通过短信或电子邮件接收交易详细信息。
用户如何在不使用网络服务的情况下从我的应用程序获取短信和邮件(如果有可用的示例代码,请帮助我。
提前致谢

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬色的秋千 2025-01-11 02:53:33

对于邮件,您可以查看: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

魔法少女 2025-01-11 02:53:33

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文