I want to open PDF attachment via email in my own application: I refer two link here:
我想在我自己的应用程序中通过电子邮件打开PDF附件:我在这里引用两个链接:
How do I associate file types with an iPhone application?
如何将文件类型与iPhone应用程序相关联?
在这里Raywenderlich
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
它显示了一些XML内容,并说它已添加到info.plist.My info.plist显示为此附件。如何向info.plist添加内容以使其作为XML文档可见。我的info.plist
5 个解决方案
#1
19
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文件只不过是Xcode以自己的方式查看的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
您也可以通过单击加号或右键单击 - >添加行直接添加到plist。 plist的默认视图可以为您提供建议,因此我建议您使用它而不是以XML格式查看
#2
10
info.plist is a system level plist in iPhone application, you can add properties by adding a property like this:
info.plist是iPhone应用程序中的系统级plist,您可以通过添加如下属性来添加属性:
#3
6
Right click on the .plist in Xcode and select "Open As -> Source code"
右键单击Xcode中的.plist并选择“Open As - > Source code”
#4
4
may be worth mentioning how to get there..
可能值得一提的是如何到达那里..
Info.plist is one of the file below the Main.storyboard or viewController.swift
Info.plist是Main.storyboard或viewController.swift下面的文件之一
when you click on it first time it usually is in a table format,so right click the file and 'open as' Source code and then add the code
当你第一次点击它时它通常是表格格式,所以右键单击文件并“打开为”源代码,然后添加代码
#5
1
If you want to view it as XML, just find the plist file and open it with your favorite editor. Something like TextWrangler. And then add your key-value pairs.
如果要将其视为XML,只需找到plist文件并使用您喜欢的编辑器打开它。像TextWrangler这样的东西。然后添加键值对。
#1
19
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文件只不过是Xcode以自己的方式查看的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
您也可以通过单击加号或右键单击 - >添加行直接添加到plist。 plist的默认视图可以为您提供建议,因此我建议您使用它而不是以XML格式查看
#2
10
info.plist is a system level plist in iPhone application, you can add properties by adding a property like this:
info.plist是iPhone应用程序中的系统级plist,您可以通过添加如下属性来添加属性:
#3
6
Right click on the .plist in Xcode and select "Open As -> Source code"
右键单击Xcode中的.plist并选择“Open As - > Source code”
#4
4
may be worth mentioning how to get there..
可能值得一提的是如何到达那里..
Info.plist is one of the file below the Main.storyboard or viewController.swift
Info.plist是Main.storyboard或viewController.swift下面的文件之一
when you click on it first time it usually is in a table format,so right click the file and 'open as' Source code and then add the code
当你第一次点击它时它通常是表格格式,所以右键单击文件并“打开为”源代码,然后添加代码
#5
1
If you want to view it as XML, just find the plist file and open it with your favorite editor. Something like TextWrangler. And then add your key-value pairs.
如果要将其视为XML,只需找到plist文件并使用您喜欢的编辑器打开它。像TextWrangler这样的东西。然后添加键值对。