我正在通过UIDocumentInteractionController
与其他应用程序共享PDF。在添加此功能之前,我使用了MFMailComposeViewController
自定义的“发送到电子邮件”按钮 - 但现在我的UIDocumentInteractionController
中也有一个邮件按钮,我想利用该按钮来避免重复按钮。通过UIDocumentInteractionController与邮件进行交互
我的问题是,通过旧的邮件控制器,我用来设置主题和内容文本,而如果我使用UIDocumentInteractionController
- 我只收到一封带有PDF附件的空白电子邮件。有没有人知道我可以使用这种方法并在使用UIDocumentInteractionController
时获得我的自定义主题和内容?
我在文档中找不到任何明显的东西,显然我不能干涉Mail应用程序以使其与我的应用程序进行通信 - 但是想知道是否有其他人遇到了问题,并且怀疑出现了“返回'门'的解决方案。
下面是我当前如何创建和initalising代码我UIDocumentInteractionController
:
-(void)openDocumentIn:(NSString*)filepath
{
//NSString * filePath = [[NSBundle mainBundle]
pathForResource:filePath ofType:@"pdf"];
documentController = [UIDocumentInteractionController
interactionControllerWithURL:[NSURL fileURLWithPath:filepath]];
documentController.delegate = self;
documentController.UTI = @"com.adobe.pdf";
[documentController presentOptionsMenuFromBarButtonItem:
[self.imageViewController exportQuote] animated:YES];
}
你有没有找到答案做到这一点? – windup
@windup不幸的是 - 仍然没有答案的问题! – Chris