我们如何在微信中与 UIDocumentInteraction 控制器或 UIActivityViewController 共享文本?我正在使用它但没有成功:
UIDocumentInteraction *docController = [UIDocumentInteractionController interactionControllerWithURL:fileURL]; self.docController.delegate = self;
docController.UTI = @"公共文本";
NSString * msg = @"Hello WEChat";
NSString * urlWhats = [NSString stringWithFormat:@"%@",msg];
//controller.UTI = urlWhats;
docController.annotation = [NSDictionary dictionaryWithObject:@"This is testing" forKey:@"Public Text"];