WhatsApp에는 "사용자 지정 URL 구성표"와 "문서 상호 작용"(http://www.whatsapp.com/faq/en/iphone/23559013)이 있습니다.
하지만 인스 타 그램 같은 텍스트 (http://instagram.com/developer/mobile-sharing/iphone-hooks/)
이 설정을위한 annotions을 지원하지 않는 것 같습니다 공유하지만 텍스트없이 할 수있는 방법입니다.
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];
누군가가 질문에 대한 완전한 답을 갖고 있기를 바랍니다. 이미지와 텍스트 콤보도 붙어 있습니다.