本文介绍了在不使用UIDocumentInteractionController的情况下从iOS应用程序在Whatsapp上分享图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用UIDocumentInteractionController在iOS应用上分享了Whatsapp上的图像。但是,现在,我需要在不使用UIDocumentInteractionController的情况下共享图像。有可能吗?

I have shared an image on Whatsapp from an iOS app using UIDocumentInteractionController. But, right now, I need to share an image without using UIDocumentInteractionController. Is it possible?

推荐答案

这是不可能的,因为所有应用都是沙盒化的 UIDocumentInteractionController 是在应用程序之间共享文件的唯一方式。

It's not possible, since all apps are sandboxed the UIDocumentInteractionController is the only way to share files among apps.

阅读它只提到 UIDocumentInteractionController 用于共享文件(图像,视频和音频)。如果你只想要WhatsApp显示更改文件的扩展名,你可以:

Read the FAQ on integrate WhatsApp it only mentions UIDocumentInteractionController for sharing files (images, video and audio). You can if you only want WhatsApp to show up change the extension to of the file to:


  • images - .wai是net类型.whatsapp.image

  • 视频 - .wam类型为net.whatsapp.movi​​e

  • 音频文件 - .waa类型为net。 whatsapp.audio

这篇关于在不使用UIDocumentInteractionController的情况下从iOS应用程序在Whatsapp上分享图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 11:46