我可以在UIDocumentInteractionController视图上隐藏“操作"按钮吗? [英] Can I hide the Action button on the UIDocumentInteractionController view?

查看:595
本文介绍了我可以在UIDocumentInteractionController视图上隐藏“操作"按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以隐藏UIDocumentInteractionController上的操作"按钮,以便用户实际上无法在其他应用程序中打开文档?

I wanted to know if I can hide the Action button on the UIDocumentInteractionController so a user couldn't actually open the document in another app?

推荐答案

我发现一些对我来说足够好用的东西:

I found something that works for me well enough:

- (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller   canPerformAction:(SEL)action{
    return false;
}

它仍然显示按钮,但是显示的弹出窗口只有打印形式,但是打印按钮被禁用了.

It still shows the button but the popover that appears only has the print form but the print button is disabled.

这篇关于我可以在UIDocumentInteractionController视图上隐藏“操作"按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆