mfMessageComposeViewController.cansendtext()何时返回false?

发布于 2025-01-31 06:38:20 字数 546 浏览 0 评论 0 原文

有谁确切知道iOS MFMESSAGECOMPOSEVIEWCONTROLLER.CANSENDTEXT()返回false?根据Apple的文档,它指出:

A device may be unable to send messages if it does not support messaging or if it is not currently configured to send messages.

当我测试时,它会在iPhone模拟器上返回False(这很有意义)。但是在物理设备上,尽管没有安装SIM卡,但它总是返回True。有点模糊<代码>无法发送消息 @@

更新: 基于本书,它指出:

如果您尝试在模拟器中或没有SIM卡的电话上运行该应用

从我测试的内容中不正确

Does anyone know exactly when will iOS MFMessageComposeViewController.canSendText() return false? Based on Apple's documentation, it states that:

A device may be unable to send messages if it does not support messaging or if it is not currently configured to send messages.

When I test, it returns false on iPhone simulators (which made sense). But on physical device, it always return true although there's no sim card installed. It's kinda vague on what is considered unable to send messages @@

Update:
Based on this book, it states that:

If you try to run the app in the simulator or on a phone without a SIM card the MFMessageComposeViewController.canSendText() will always returns false.

which is not true from what I tested ????

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文