2012-02-15 61 views
2

我正在使用UIDocumentInteractionController的presentPreviewAnimated方法来预览文档。它工作正常。但我希望在预览模式下禁用操作按钮。我有以下两个委托方法返回NO。但是这两种方法根本就没有被调用。其他委托方法工作正常。任何建议?禁用UIDocumentInteractionController的操作项目presentPreviewAnimated

-(BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(SEL)action { 
NSLog(@"canPerformAction"); 
return NO; 
} 

-(BOOL)documentInteractionController:(UIDocumentInteractionController *)controller performAction:(SEL)action { 
NSLog(@"performAction"); 
return NO; 
} 

回答

0

我终于切换到使用QLPreviewController类。你可以在哪里进行子类化,并使动作按钮消失。 (在这个SO的rbrown的回答帮助下。