Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序可以发送多个 SMS 消息。
众所周知,如果发送到被识别为 Apple 手机的号码,它将作为 iMessage 发送。
我不想在我的应用程序中使用它。因此,如果打开 iMessage,我想禁用我的应用程序。
有没有办法在运行时检查 iMessage 是否打开或关闭?
正如您在MFMessageComposeViewController文档中看到的那样,没有这样的 API。您只能检查此 API 中指定的内容。
MFMessageComposeViewController