iPhone 上的短信 - 可通过 SDK 访问吗?
iOS SDK 中有处理短信的 API 吗?
Is there an API in the iOS SDK that deals with text messaging?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
iOS SDK 中有处理短信的 API 吗?
Is there an API in the iOS SDK that deals with text messaging?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
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.
是:
http://developer.apple.com/ library/ios/#documentation/MessageUI/Reference/MessageUI_Framework_Reference/_index.html
但是,正如 iOS 文档中所述:
Yes:
http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MessageUI_Framework_Reference/_index.html
However, as stated in the iOS documentation:
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.
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.