我正在使用以下代码并获得真实,但是当点击可用的任何选项时,只需隐藏显示的菜单而不是打开相应的应用程序。
self.docController = [ UIDocumentInteractionController interactionControllerWithURL: fileUrl ];
BOOL result = [ self.docController presentOpenInMenuFromRect: CGRectMake(425, self.frame.origin.y+20, 50, 50) inView: [self superview] animated: YES ];
if(!result)
[appDelegate showTost:@"No application available to open this file!" :[appDelegate currentViewOfCurrentScreen]];