如何在iOS的info.plist中添加属性 [英] How to add properties in info.plist in iOS

查看:406
本文介绍了如何在iOS的info.plist中添加属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在自己的应用程序中通过电子邮件打开PDF附件:我在这里引用了两个链接:

I want to open PDF attachment via email in my own application: I refer two link here:

如何将文件类型与iPhone相关联申请吗?

它显示一些XML内容,并说已将其添加到info.plist.我的info.plist像此附件一样显示.如何将内容添加到info.plist以使其以XML文档可见. 我的info.plist

where it shows some XML content, and says its added to info.plist.My info.plist is shown like this attachment. How can I add content to info.plist to make it visible as XML document.! My info.plist

推荐答案

plist文件只不过是Xcode以自己的方式查看的XML文档. 您可以右键单击->打开为->源代码以获取所需的视图.

plist files is nothing more than XML document that Xcode view in his own way. You can Right click -> Open as -> Source Code to get view you want.

也可以通过单击加号或右键单击->添加行将其直接添加到plist. plist的默认视图可以为您提供建议,因此我建议您使用它而不是XML格式.

Also you can add to plist directly by clicking plus sign or Right click -> Add Row. Default view of plist can give you a suggestions, so I recommend you to use this instead of viewing as XML

这篇关于如何在iOS的info.plist中添加属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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