开发者

iOS: Registering for dynamic UTIs

I am developing an application that will be capable of handling multiple file types. To accomplish this, I have registered the UTIs corresponding to the file types in my info.plist file. However, there are a few file types, such as .pub & .indd, for which mdls generates a dynamic UTI (dyn.something).

My question is, how do I register for such types? As far as I can understand, as these are not file types defined by my appl开发者_运维百科ication (custom file types such as com.mycomp.myapp), I should not be required to export UTIs.

Any help will be really appreciated.

Thanks,

Akshay


I do not think this is possible for 3rd party apps. The URIs must be specified in the info.plist which is built into the bundle.


I have searched about this a lot. It seems that these file types are not supported by iOS (even Mac OS X).


You should check this Q&A page on how to export custom UTI type.

http://developer.apple.com/library/ios/qa/qa1587/_index.html

Even if files of such type might have system UTI type, you can register your own one by some unique name, e.g.

com.yourcompany.${PRODUCT_NAME:rfc1034identifier}.x-pub

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜