不能使用UIActivityViewController与whatsapp共享超链接

时间:2015-12-14 09:16:31

标签: ios ios9 whatsapp uiactivityviewcontroller

我试图在我的应用中使用UIActivityViewController与超链接共享一些文本,文本使用<html>脚本格式化,如图所示。

 UIActivityViewController *activityVC  [[UIActivityViewController alloc] initWithActivityItems:@[@"<html><body><b>This is a bold string</b><br\\>Check out this amazing site: <a href='http://apple.com'>Apple</a></body></html>"] applicationActivities:nil];

它在许多社交媒体应用程序中都很好用,但它不适用于whatsapp。在whatsapp中,它简单地显示为纯文本(附带检查图像),

for gmail app &lt; ------ for gmail app for whatsapp app &lt; ------ for whatsapp app

这里有什么问题?请帮我。感谢。

1 个答案:

答案 0 :(得分:1)

可能是whatsapp messenger不支持它。如此链接所述。 https://www.whatsapp.com/faq/en/iphone/23559013

WhatsApp Messenger can handle various types of media:

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)