
我的问题是,通过旧的邮件控制器,我曾经设置主题和内容文本,而如果我使用UIdocumentInteractionController – 我只收到一封带有pdf附件的空白电子邮件.有没有人知道我可以解决这个问题,并在使用UIdocumentInteractionController时获取我的自定义主题和内容?
我在文档中找不到任何明显的东西,显然我不能干涉Mail应用程序以使其与我的应用程序通信 – 但是想知道是否有其他人遇到过这个问题,并且怀疑是“后门”解决方案.
下面是我目前正在创建和初始化我的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];}解决方法 您可以通过以下代码执行此 *** 作 [self.documentInteractionController setname:@"My Email Subject"];总结
以上是内存溢出为你收集整理的ios – 通过UIDocumentInteractionController与Mail交互全部内容,希望文章能够帮你解决ios – 通过UIDocumentInteractionController与Mail交互所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)