以编程方式在 iPhone 上使用彩信发送图像?

发布于 2024-10-07 08:23:58 字数 345 浏览 8 评论 0原文

搜索整个网络没有解决这个问题...

我想用 iPhone 相机拍照,然后能够通过彩信/电子邮件发送出去。 这不一定发生在我的应用程序中,但至少我希望能够调用彩信/电子邮件应用程序并使其选择拍摄(和存储)的图片。

当我使用内置相册应用程序时,每张照片的左下角都有一个按钮,可以让我分享/打印实际照片......

所以我有点希望我能够在我的照片中构建类似的东西应用程序...?

有什么想法吗?

[编辑]

感谢到目前为止的回答。

同时,我发现我至少可以从“MessageUI”框架内发送电子邮件和短信。 但是,我似乎无法将图像添加到短信的消息正文中(该死)......

Searched the whole web for this with no solution...

I want to take a picture with the iphone camera and then be able to send it out via MMS/E-Mail.
This doesn't have to happen in my app, but at least I'd like to be able to call the MMS/E-Mail app and make it select the taken (and stored) picture.

When I use the built-in Photo-Album app, every picture has a button on the lower left corner which let's me share/print the actual photo...

So I kinda hope I'll be able to build something like that into my app...?

Any ideas?

[EDIT]

Thanks for the answers so far.

Meanwhile, I found out that I could at least send E-Mails and SMS's from within the «MessageUI»-Framework.
However, it seems that I can't add an image to the message-body of an SMS (damn)...

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏天碎花小短裙 2024-10-14 08:23:58

您无法以编程方式触发彩信/短信。您需要将控制权移交给 UIImagePickerController 并将其 sourceType 字段设置为 PhotoLibrary。

干杯
纳伦

You cannot fire an MMS/SMS programatically. You will need to hand over control to the UIImagePickerController and set its sourceType field to PhotoLibrary.

Cheers
Naren

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文