文档交互
如果您的应用程序创建的照片,视频或音频笔记,您希望用户共享使用WhatsApp的这些媒体,你可以使用文档交互API将媒体发送到您的WhatsApp的联系人和组。
的WhatsApp Messenger的可以处理各种类型的媒体:
images of any type that conforms to public.image (for example, PNG and JPEG)
videos of any type that conforms to public.movie (for example, MPEG-4 video)
audio files (only MPEG-3, MPEG-4, AIFF, AIFF-C and Core Audio)
另外,如果你想只显示WhatsApp的应用程序列表(代替了WhatsApp以及任何其他公共/ * - 符合应用程序)可以指定保存即排至WhatsApp的扩展上述类型中的一个的文件:
images - «.wai» which is of type net.whatsapp.image
videos - «.wam» which is of type net.whatsapp.movie
audio files - «.waa» which is of type net.whatsapp.audio
当被触发时,WhatsApp的将立即与接触/组选择器屏幕向用户呈现。媒体将自动发送到选定的联系人/组。
看到苹果文档的文章:预览和打开文件和更多信息,UIDocumentInteractionController类参考。
更多细节PLZ chekc此链接: - http://www.whatsapp.com/faq/en/iphone/23559013
示例代码共享视频: -
self.documentationInteractionController.UTI = @"net.whatsapp.movie";
self.documentationInteractionController = [UIDocumentInteractionController interactionControllerWithURL: fileURL];
self.documentationInteractionController.delegate = self;
[self.documentationInteractionController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
来源
2014-10-22 08:21:12
Sri
看到我编辑的代码......类似的东西..了解更多详情chekc这里:-http://stackoverflow.com/questions/20417047/whatsapp ? - 图像共享-IOS RQ = 1分 – Sri 2014-10-22 09:28:45
已经接受的答案是对疗法分享介绍用户 - http://stackoverflow.com/questions/24161321/share-video-on-whatsapp-objective-c?rq=1ü问同样的问题也在这里... – Sri 2014-10-22 09:33:22