简体   繁体   中英

Disable file preview for a custom file type in iOS

I have associated a file type with my iOS app, so I can open files of that type in the app, eg from an email. Opening files works, but simply tapping on an attachment in an email opens the quick view screen, which comes up blank. The file format is a zip file with a custom extension, which I believe is unique.

What can I do to disable the quick view for my file type?

I hope you came up with a solution since :)

For people who may be searching for a solution too, have a look on the protocol(s) you custom type inherits from (array key UTTypeConformsTo , name "Conforms to UTIs")

In my case, my custom type is a zip archive with a custom extension (as you) and I put " public.data " and " public.archive ". The "public.archive" was responsible for the OS to display the content of my custom zip in Files app, or having the Quick look in Mail app. The solution was to inherit only from "public.data".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM