Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/115.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在我的应用程序中集成共享iOS/whatsapp。将图片和文本同时共享到whatsapp_Ios_Image_Text_Share_Whatsapp - Fatal编程技术网

在我的应用程序中集成共享iOS/whatsapp。将图片和文本同时共享到whatsapp

在我的应用程序中集成共享iOS/whatsapp。将图片和文本同时共享到whatsapp,ios,image,text,share,whatsapp,Ios,Image,Text,Share,Whatsapp,是否已经有一种方法可以将图片和文本从我的应用分享到whatsapp 我只能找到一个android解决方案。iOS一定能做到吗?希望任何人都能找到解决办法 我在这里找到了图片和文本的解决方案,但我正在寻找android提供的选项;从我的应用程序,在一个动作中,向whatsapp联系人发送图片和文本 非常需要帮助,什么都试过,到处找!请专家站起来:)!提前感谢,希望收到您的来信 WhatsApp有一个“自定义URL方案”和“文档交互”(documentinteraction)() 但它似乎不支持将文

是否已经有一种方法可以将图片和文本从我的应用分享到whatsapp

我只能找到一个android解决方案。iOS一定能做到吗?希望任何人都能找到解决办法

我在这里找到了图片和文本的解决方案,但我正在寻找android提供的选项;从我的应用程序,在一个动作中,向whatsapp联系人发送图片和文本

非常需要帮助,什么都试过,到处找!请专家站起来:)!提前感谢,希望收到您的来信

WhatsApp有一个“自定义URL方案”和“文档交互”(documentinteraction)()

但它似乎不支持将文本设置为Instagram()

这是一种分享的方式,但没有文本

self.documentationInteractionController =[UIDocumentInteractionController interactionControllerWithURL:jpegFileURL];
self.documentationInteractionController.delegate = self;

self.documentationInteractionController.UTI = @"public.jpeg";
self.documentationInteractionController.UTI = @"net.whatsapp.image";

// NOT WORKING - Found this solution, no success
self.documentationInteractionController.annotation = @{@"message":@"Text here",@"text":@"Text here"};

// NOT WORKING - Found other solution, no success
self.documentationInteractionController.annotation = [NSString stringWithFormat:@"text=Text here"];

// WORKING - BUT only for instagram
self.documentationInteractionController.annotation = @{@"InstagramCaption":@"Text here"};

[self.documentationInteractionController presentOptionsMenuFromRect:CGRectZero inView:self.view animated:YES];
希望有人有完整的答案的问题,我也坚持与图像和文本组合