开发者

define myself'd file type using CFBundleDocumentTypes

开发者 https://www.devze.com 2023-03-09 04:32 出处:网络
I know I can def开发者_如何学运维ine file type using in appinfo.plist such as zip, pdf etc Is it possible define any type with special extension, such as \'.mydatafiletype\' or \'.datafiletype\'

I know I can def开发者_如何学运维ine file type using in appinfo.plist such as zip, pdf etc

Is it possible define any type with special extension, such as '.mydatafiletype' or '.datafiletype'

Welcome any comment


Yes, you can. The documentation clearly states so.


Sure you can.
Generally, you need to set UTExportedTypeDeclarations property in info.plist file.

The post here: How do I associate file types with an iPhone application?
Gives you a sample to do it.

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消