Original address: http://blog.sina.com.cn/s/blog_947c4a9f0100zf41.html
After building a project, you will see a "project name-info.plist" file under supporting files, this is the project to do some run-time configuration of the file, it is important, can not be deleted.
If you download the project on the Internet this file name is only Info.plist, then congratulations, this project is too old, is included SDK2.0 previous Xcode generated, but it doesn't matter, does not affect the use.
If you use a text editor to open this file, you will find that this is an XML format text file, generally we do not use a text editor directly edit this file, but through Xcode editing.
Here is an example of this file:
The following is an explanation of the fields that may appear here:
Localiztion native Development Region---cfbundledevelopmentregion localization related, if the user location does not have the corresponding language resources, then use the value of this key as the default.
The Bundle display name---cfbundledisplayname Setup program to display after installation. The application name is limited to 10-12 characters, and if exceeded, an abbreviated name is displayed.
Executaule file--the name of the Cfbundleexecutable program installation package
Icon file---cfbundleiconfile application icons name, typically icon.png
Bundle identifier---Cfbundleidentifier the unique identification string for the bundle, The format of the string is similar to Com.yourcompany.yourapp, if you use the emulator to run your app, this field is useless, if you need to deploy your app to the device, you must generate a certificate, and when the certificate is generated, on the Apple website need to add the appropriate app IDs. Here is a field bundle identifier, if the bundle identifier is a full string, then this field in the file must be exactly the same as the latter, if the field in the app IDs contains a wildcard *, Then the string in the file must conform to the description of the latter.
Version information for infodictionary version---cfbundleinfodictionaryversion info.plist format
Bundle OS Type code--Cfbundlepackagetype: Used to identify the bundle type of four-letter long codes, (online Search, puzzled??). )
Bundle versions string, short---cfbundleshortversionstring version string for the user market bundle, (online search, puzzled??). )
Bundle creator OS Type code---cfbundlesignature: Used to identify the creator of the four-letter long codes, (online Search, puzzled??). )
Bundle Version---The cfbundleversion application version number, which will be added to the App store each time a new version of the application is deployed.
Application require iphone environment--Lsrequiresiphoneos: Used to indicate whether the package can only run on iphone OS systems. Xcode automatically joins this key and sets its value to true. You should not change the value of this key.
Main nib file base name- NSMainNibFile This is a string that specifies the name of the application main nib file. If you want to use a different nib file (instead of the default file that Xcode created for your project) as the primary nib file, you can associate the nib filename with this key. The nib file name should not contain an .nib extension. This field can be deleted, you can refer to my previous article, the main function of the study.
Supported interface orientations--the direction that the Uisupportedinterfaceorientations program supports by default.
The following is reproduced.
Application uses Wi-Fi
This property should be set to TRUE if the application requires Wi-Fi to work. Doing so prompts the user to turn on Wi-Fi if Wi-Fi is not turned on. To conserve power, the iphone automatically shuts down any Wi-Fi in the app after 30 minutes. Setting this property prevents the occurrence of this condition and keeps the connection active
More field information can be found on the developer's website.
http://developer.apple.com/library/ios/#documentation/general/reference/infoplistkeyreference/introduction/ introduction.html#//apple_ref/doc/uid/tp40009
Reprint: http://blog.csdn.net/nicktang/article/details/6875234