在iOS SDK中,如何帮助我的用户从我的应用程序发送混杂SMS的彩信? [英] In the iOS SDK, how can I help my users send MMS intermixed with SMS from my app?

查看:97
本文介绍了在iOS SDK中,如何帮助我的用户从我的应用程序发送混杂SMS的彩信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的应用程序依赖于帮助用户一次性向他们的朋友发送混合图像和文本的能力。

An app that I am developing relies on the ability to help users send a mixture of images and text to their friends in one go.

我希望MFMessageComposeViewController将提供一些方法来为用户提供消息正文中的图像,但显然我只能为身体建议NSString。

I was hoping that MFMessageComposeViewController would offer some way to provide the user with an image in the body of the message, but evidently I can only suggest NSString for the body.

或者,我可以将文本渲染到图像中然后发送它,但我仍然没有找到建议用户通过图像发送图像的方法彩信。

Alternatively, I could render the text into the image and then send that as well, but I still haven't found a way to suggest that the user send an image via MMS.

有没有办法做这些事情?

Is there a way to do either of these things?

推荐答案

发送彩信遇到了同样的麻烦。

我用这种方式解决了这个问题:

I had the same troubles with sending MMS.
I resolved it in this way:

[UIPasteboard generalPasteboard].image = yourImage;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]];

首先我将所需图像复制到剪贴板然后打开标准

MFMessageComposeViewController 并从剪贴板粘贴此图片。

当然您应该在手机上设置合适的彩信设置。

So firstly I copied needed image to clipboard and then open standard
MFMessageComposeViewController and paste this image from clipboard.
And of course You should have suitable settings for MMS on your phone.

这篇关于在iOS SDK中,如何帮助我的用户从我的应用程序发送混杂SMS的彩信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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