在 Xcode4 中为 IOS 添加文件关联 [英] Add File associations for IOS in Xcode4

查看:35
本文介绍了在 Xcode4 中为 IOS 添加文件关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为 xcode4 中的某些扩展添加文件关联.在 Xcode4/Target 中有一个文档类型"部分,我尝试添加一些条目,但我不知道如何设置它以打开我的文件.

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.

抱歉,如果有人没有理解,我真正想要的是:我正在为 iPad 开发一个应用程序,我的用户需要将一个配置文件上传到应用程序中,(a .conf),我想提供两种方法来做到这一点,通过iTunes文件共享"和邮件,即用户将配置邮寄给自己,在 Mail.app 中,他们触摸文件并选择打开方式...",然后他们选择我的应用程序.

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.

推荐答案

iOS 文档交互编程主题 很好地描述了您需要做什么.基本上是Info-plist信息.

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

我建议使用比conf"更通用的文件后缀.

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

这篇关于在 Xcode4 中为 IOS 添加文件关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆