iPhone 上的短信 - 可通过 SDK 访问吗?

发布于 2024-09-28 23:32:41 字数 29 浏览 11 评论 0原文

iOS SDK 中有处理短信的 API 吗?

Is there an API in the iOS SDK that deals with text messaging?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

探春 2024-10-05 23:32:41

MessageUI.framework 就是您正在寻找的。

您可以使用 MFMessageComposeViewController 来显示短信系统作曲家。

MFMessageComposeViewController 类提供了用于编写 SMS 文本消息的标准系统接口。您可以使用此类来配置消息的初始收件人和正文,并配置委托来响应最终结果。

MessageUI.framework is what you are looking for.

You can use MFMessageComposeViewController to show system composer for sms.

The MFMessageComposeViewController class presents a standard system interface for composing SMS text messages. You use this class to configure the initial recipients and body of the message and to configure a delegate to respond to the final result.

帅冕 2024-10-05 23:32:41

是:

http://developer.apple.com/ library/ios/#documentation/MessageUI/Reference/MessageUI_Framework_Reference/_index.html

但是,正如 iOS 文档中所述:

重要提示:如果基于 iOS 的设备
未配置为发送给定类型
消息,您应该避免显示
相应的组成
界面。视图控制器在
该框架提供了方法
确定是否可以获得支持
对于给定的消息类型。

Yes:

http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MessageUI_Framework_Reference/_index.html

However, as stated in the iOS documentation:

Important: If an iOS-based device is
not configured to send a given type of
message, you should avoid displaying
the corresponding composition
interface. The view controllers in
this framework provide methods for
determining if support is available
for a given message type.

晨光如昨 2024-10-05 23:32:41

MessageUI.framework 将起作用,并为您提供 SMS 和电子邮件消息功能

但是

请注意,这仅适用于 iOS 4.0。这意味着它(目前)无法在 iPad 上运行。

MessageUI.framework will work, and give you SMS and Email message capabilities

BUT

Note that this only works in iOS 4.0. Which means it will not work (currently) on the iPad.

笑叹一世浮沉 2024-10-05 23:32:41

MessageUI.framework 将使您能够从 iPhone 撰写和发送短信和电子邮件,但据我所知,无法从您的本机应用程序访问短信或电子邮件到您的应用程序。

MessageUI.framework will give you ability to compose and send SMS and Emails from iphone, but as per my knowledge there is no way to access SMS or Email from you native app to your app.

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