Is there a way to limit the Applications shown in a UIDocumentInteractionController?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 20:57:26

问题


I am currently displaying a UIDocumentInteractionController so that the user of my App can open a File in a different App. The controller pops up and lists the App with no problem. However, it also displays Cloud apps such as Dropbox (which I'm assuming associate themselves with nearly every valid file-type), which is quite annoying. Is there anyway that I can specify the controller to only display the App I want?


回答1:


No, you cannot filter this list. You're not allowed to tell the user that they can't send your file to Dropbox if they want. :)

(If you have only one specific app that makes sense to send your file to, and you can control or have a partnership with that app, then you can agree on some other obscure file type to use, or communicate directly by custom URL. UIDocumentInteractionController is designed for the general case of allowing the user to shuttle files wherever they might need them, and cloud services can be perfectly valid places to put files of standard types.)



来源:https://stackoverflow.com/questions/11977635/is-there-a-way-to-limit-the-applications-shown-in-a-uidocumentinteractioncontrol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!