Can I hide the Action button on the UIDocumentInteractionController view?

后端 未结 2 618
孤城傲影
孤城傲影 2021-01-14 12:47

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?

2条回答
  •  梦谈多话
    2021-01-14 13:24

    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.

提交回复
热议问题