文档交互控制器显示选项,但是当点击任何选项时,只需隐藏菜单

时间:2014-10-02 12:09:18

标签: ios objective-c uidocumentinteraction

我正在使用以下代码并获得真实,但是当点击可用的任何选项时,只需隐藏显示的菜单而不是打开相应的应用程序。

    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]];

0 个答案:

没有答案