我正在将PSPDFKit升级到最新版本,但我遇到了一些已更改的方法问题。我查看了changelog,但不是很幸运,文档还不是很好。
我有以下代码
[pdfController.emailButtonItem setSendOptions:PSPDFDocumentSharingOptionCurrentPageOnly|PSPDFDocumentSharingOptionAllPages|PSPDFDocumentSharingOptionFlattenAnnotations|PSPDFDocumentSharingOptionEmbedAnnotations];我想让它在最新的版本中工作。我已经在新版本中看到了这一点,我必须这样做:
PSPDFDocumentSharingViewController *sharingVC = [[PSPDFDocumentSharingViewController alloc] initWithDocument:document visiblePages:nil allowedSharingOptions:PSPDFDocumentSharingOptionCurrentPageOnly|PSPDFDocumentSharingOptionAllPages|PSPDFDocumentSharingOptionFlattenAnnotations|PSPDFDocumentSharingOptionEmbedAnnotations];但我不知道如何将其应用于我的PSPDFViewController对象(pdfController)。
另外,我想知道如何将其迁移到新版本:
pdfController.emailButtonItem.mailComposeViewControllerCustomizationBlock = ^(MFMailComposeViewController *邮件控制器){ mailController setSubject:@“信息”;};
我在文档中看到了这一点:
接口:移除mailComposeViewControllerCustomizationBlock。使用pdfViewController:shouldShowController:embeddedInController:options:委托。
但不知道如何应用它。
有什么帮助吗?
谢谢!
发布于 2015-07-01 22:14:45
一般来说,https://support.pspdfkit.com是我们提供支持的首选方式。
在本例中,此属性现在位于PSPDFConfiguration中:https://pspdfkit.com/api/ios/Classes/PSPDFConfiguration.html#//api/name/mailSharingOptions
https://stackoverflow.com/questions/30648819
复制相似问题