MFMessageComposeViewController和iMessage [英] MFMessageComposeViewController and iMessage

查看:216
本文介绍了MFMessageComposeViewController和iMessage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个有按钮的应用。如果您触摸该按钮,将显示一个 MFMessageComposeViewController ,其中填充了正文和一个收件人。这个收件人是'4343',这是比利时发短信的短代码。

I'm building an app that has a button. If you touch that button, an MFMessageComposeViewController will show, with the body filled in and one recipient. This recipient is '4343', a shortcode for texting in Belgium.

这里错误的是 MFMessageComposeViewController 将所有内容设置为iMessage:发送按钮为蓝色,收件人格式为(434)3,并且也显示为蓝色。

The wrong thing here is that the MFMessageComposeViewController will setup everything as an iMessage: the 'send' button is blue and the recipient is formatted as '(434) 3' and is also colored in blue.

很快,这意味着iOS选择了iMessage,但我想覆盖它。有没有人知道如何覆盖这种行为,并让它发送真正的短信(短信)。

Shortly, this means that iOS chooses for iMessage, but i want to override that. Does anyone know how I can override this behavior and make it send real text messages (SMS).

我可以看到,如果文本被发送,它显示为我的消息应用程序中的普通文本。但这仍然令人困惑...

What I can see is that if the text is sent, it appears as a normal text in my Messages app. But this is still confusing...

推荐答案

只需查看 MFMessageComposeViewController类引用,没有公开的方法来执行此操作。

From just looking at the MFMessageComposeViewController class reference, there’s no public way to do this.

如果您在常规消息应用中键入 4343 ,它是否也以蓝色突出显示?
(我意识到这个问题已经有几个月了......)

If you type 4343 into the regular Messages app, does it also highlight it in blue? (I realise this question is months old…)

这篇关于MFMessageComposeViewController和iMessage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆