如何使用MessageUI框架在iPhone上发送iMessage消息 [英] how to use MessageUI framework to send iMessage messages on iPhone

查看:182
本文介绍了如何使用MessageUI框架在iPhone上发送iMessage消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用iPhone上的MessageUI框架从应用程序内部发送消息?

Is it possible to send messages from inside an app, using MessageUI framwork on iPhone?

或者,是否存在iMessage的URL方案?

Or, is there an URL Scheme for iMessage?

推荐答案

使用iOS 4. *,您可以从应用程序内部发送电子邮件和SMS.使用MessagUI viewController. 由于iOS 5仍在NDA下,因此我们无法在此处讨论任何新的API

With iOS 4.* you can send email and SMS from inside your app. Using the MessagUI viewController. Since iOS 5 is still under NDA we can not discus any new API's here

我已经检查了文档,并且那里没有提到iMessage. 系统仍然可以通过iMe​​ssage发送消息,但是不会通知您.

I've checked the documentatie and there is no mention of iMessage in there. Still the system might send the message via iMessage but you will not be notified about it.

主要原因是iMessage在系统中是透明的,它作为普通SMS应用程序启动,并且如果系统检测到另一方也有iOS 5,它将切换到iMessage.

The main reason for this is that iMessage is transparent in the system, it start out as the normal SMS application, and if the system detect that the other party also has iOS 5 it will switch to iMessage.

这篇关于如何使用MessageUI框架在iPhone上发送iMessage消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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