UIDocumentInteractionControllerのpresentPreviewAnimatedメソッドを使用してドキュメントをプレビューしています。正常に動作します。ただし、プレビューモードではアクションボタンを無効にしたい。NOを返すために次の2つの委任されたメソッドがあります。しかし、これら2つのメソッドはまったく呼び出されませんでした。他の委任されたメソッドは正常に機能します。なにか提案を?
-(BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(SEL)action {
NSLog(@"canPerformAction");
return NO;
}
と
-(BOOL)documentInteractionController:(UIDocumentInteractionController *)controller performAction:(SEL)action {
NSLog(@"performAction");
return NO;
}