Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add properties in info.plist in iOS

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

How do I associate file types with an iPhone application?

and here on 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:

enter image description here

like image 629
bapi Avatar asked Nov 21 '13 07:11

bapi


2 Answers

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.

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

like image 76
Matěj Mefjů Novák Avatar answered Sep 20 '22 16:09

Matěj Mefjů Novák


info.plist is a system level plist in iPhone application, you can add properties by adding a property like this:enter image description here

like image 34
lxzhh Avatar answered Sep 17 '22 16:09

lxzhh