iOS Document/File type associations - wildcard UTI?

后端 未结 2 1370
甜味超标
甜味超标 2020-12-09 13:35

I have an app which is something of a generic file manager. I would like the \"Open in...\" functionality present in apps using QLPreviewController, UIDocumentInteractionCo

2条回答
  •  -上瘾入骨i
    2020-12-09 13:57

    You need to specify both a UTI for the functional as well as the physical hierarchy. For all files (but excluding bundles) you can use public.data + public.content. For really everything (including symlinks and folders) you would use public.item + public.content.

    See how Dropbox.app does it: http://www.cocoanetics.com/2013/01/open-in-all-files/

    See my writeup about UTIs here: http://www.cocoanetics.com/2012/09/fun-with-uti/

提交回复
热议问题