在UIDocumentInteractionController的PresentPreviewAnimated中禁用操作项目
-
25-10-2019 - |
题
我正在使用uidocumentInteractionController的PresentPreviewanimated方法来预览文档。它可以正常工作。但是我希望在预览模式下禁用操作按钮。我有以下两个委派方法来返回。但是这两种方法根本没有被调用。其他委派方法正常工作。有建议吗?
-(BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(SEL)action {
NSLog(@"canPerformAction");
return NO;
}
和
-(BOOL)documentInteractionController:(UIDocumentInteractionController *)controller performAction:(SEL)action {
NSLog(@"performAction");
return NO;
}
解决方案
我最终切换到使用QLPReviewController类。您可以在哪里进行子类并使操作按钮消失。 (在此回答的帮助下 所以.
不隶属于 StackOverflow