Add File associations for IOS in Xcode4

这一生的挚爱 提交于 2019-12-08 14:28:18

问题


How to add a file association for certain extensions in xcode4. In the Xcode4/Target there is a "Document Types" section, i tried adding a few entries but i just don't get how to set this to open my files.

edit: Sorry if someone miss understood, what i really want is this: I'm developing an application for iPad, my users needs to upload a config file into the app, (a .conf), i wanna supply two ways to do so, trough iTunes "File Sharing", and Mail, ie, the user mail themselves the config, and in the Mail.app they touch the file and select "Open with..." and there they choose my app.


回答1:


Document Interaction Programming Topics for iOS does a good job of describing what you need to do. Basically Info-plist information.

I would suggest a file suffix less generic than "conf".



来源:https://stackoverflow.com/questions/6750846/add-file-associations-for-ios-in-xcode4

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