plist配置說明

Key:
Application can be killed immediately after launch
(NSSupportsSuddenTermination)
Value:BOOL

說明

        指定應用程序是否可以被殺死,以便更快地關閉或註銷操作。

        表示系統是否可以徹底殺死的應用程序以註銷或關閉更迅速。您可以使用此鍵來指定應用程序是否可以在關閉後立即被殺死。該應用程序還可以啓用或禁用終止在運行時使用NSProcessInfo類的方法。默認值爲NO。

 

Key:
Application Category
(LSApplicationCategoryType)
Value:String

說明

         包含UTI相應的應用程序的類型。 App Store中使用該字符串的應用程序,以確定適當的分類。

UTIs for app categories

Category

UTI

Business

public.app-category.business

Developer Tools

public.app-category.developer-tools

Education

public.app-category.education

Entertainment

public.app-category.entertainment

Finance

public.app-category.finance

Games

public.app-category.games

Graphics & Design

public.app-category.graphics-design

Healthcare & Fitness

public.app-category.healthcare-fitness

Lifestyle

public.app-category.lifestyle

Medical

public.app-category.medical

Music

public.app-category.music

News

public.app-category.news

Photography

public.app-category.photography

Productivity

public.app-category.productivity

Reference

public.app-category.reference

Social Networking

public.app-category.social-networking

Sports

public.app-category.sports

Travel

public.app-category.travel

Utilities

public.app-category.utilities

Video

public.app-category.video

Weather

public.app-category.weather

 

UTIs for game-specific categories

Category

UTI

Action Games

public.app-category.action-games

Adventure Games

public.app-category.adventure-games

Arcade Games

public.app-category.arcade-games

Board Games

public.app-category.board-games

Card Games

public.app-category.card-games

Casino Games

public.app-category.casino-games

Dice Games

public.app-category.dice-games

Educational Games

public.app-category.educational-games

Family Games

public.app-category.family-games

Kids Games

public.app-category.kids-games

Music Games

public.app-category.music-games

Puzzle Games

public.app-category.puzzle-games

Racing Games

public.app-category.racing-games

Role Playing Games

public.app-category.role-playing-games

Simulation Games

public.app-category.simulation-games

Sports Games

public.app-category.sports-games

Strategy Games

public.app-category.strategy-games

Trivia Games

public.app-category.trivia-games

Word Games

public.app-category.word-games

 

Key:
Application does not run in background
(UIApplicationExitsOnSuspend)
Value:BOOL

說明

         是否支持在後臺運行,YES時,點擊HOME鍵,則退出應用。NO時點擊HOME鍵切到後臺。

Key:
Application fonts resource path
(ATSApplicationFontsPath)
Value:String

說明

        如果想使用外部字體時,可以指定外問字體的資源文件。

Key:
Application has localized display name
(LSHasLocalizedDisplayName)
Value:BOOL

說明

        本地化顯示名。設置爲YES激活。

Key:
Application is agent (UIElement)
(LSUIElement)
Value:BOOL

說明

          如果該關鍵字被設爲“1”,啓動服務會將該應用程序作爲一個用戶界面組件來運行。用戶界面組件不會出現在Dock或強制退出窗口中。雖然它們通常作爲後臺應用程序運行,但是如果希望的話,它們也可以在前臺顯示一個用戶界面。點擊屬於用戶界面組件的窗口,應用程序將會處理產生的事件。

Dock和登錄窗口是兩個用戶界面組件應用程序。

 

Key:
Application is background only
(LSBackgroundOnly)
Value:BOOL

說明

         如果該關鍵字存在並且被設爲“1”,啓動服務將只會運行在後臺。您可以使用該關鍵字來創建無用戶界面的後臺應用程序。如果您的應用程序使用了連接到窗口服務器的高級框架,但並不需要顯示出來,您也應該使用該關鍵字。後臺應用程序必須被編譯成Mach-O可執行文件。該選項不適用於CFM應用程序。

您也可以指定該關鍵字的類型爲Boolean或Number。然而,只有Mac OS X 10.2或以上的版本才支持這些類型的值。

 

Key:
Application is visible in Classic
(LSVisibleInClassic)
Value:BOOL

說明

          指定代理的應用程序或後臺唯一的應用程序在Classic環境中的其他應用程序是否是可見的。

Key:
Application prefers Carbon environment
(LSPrefersCarbon)
Value:BOOL

說明

         如果該關鍵字被設爲“1”,Finder將會在顯示簡介面板中顯示“在Classic環境中打開”控制選項,缺省情況下該控件未被選中。如果需要,用戶可以修改這個控制選項來在Classic環境中啓動應用程序。

您也可以指定該關鍵字的類型爲Boolean或Number。然而,只有Mac OS X 10.2或以上的版本才支持這些類型的值。如果您在您的屬性列表中加入了該關鍵字,那麼就不要同時加入LSPrefersClassic, LSRequiresCarbon,或LSRequiresClassic關鍵字。

 

Key:
Application prefers Classic environment
(LSPrefersClassic)
Value:BOOL

說明

         如果該關鍵字被設爲“1”,Finder將會在顯示簡介面板中顯示“在Classic環境中打開” 控制選項,缺省情況下該控件被選中。如果需要,用戶可以修改這個控制選項來在Carbon環境中啓動應用程序。

您也可以指定該關鍵字的類型爲Boolean或Number。然而,只有Mac OS X 10.2或以上的版本才支持這些類型的值。如果您在您的屬性列表中加入了該關鍵字,那麼就不要同時加入LSPrefersCarbon, LSRequiresCarbon,或LSRequiresClassic關鍵字。

 

Key:
Application presents content in Newsstand
(UINewsstandApp)
Value:BOOL

說明

         是否允許應用程序在Newsstand中顯示。如果設爲YES。可以通過設置NewsstandIcon來美化圖標。

效果:

       

Key:
Application prohibits multiple instances
(LSMultipleInstancesProhibited)
Value:BOOL

說明

         指定一個或多個用戶是否可以同時啓動一個應用程序。

Key:
Application requires Carbon environment
(LSRequiresCarbon)
Value:BOOL

說明

          如果該關鍵字被設爲“1”,啓動服務將只在Carbon環境中運行應用程序。如果您的應用程序不應該運行在Classic環境中的話,可以使用該關鍵字。

您也可以指定該關鍵字的類型爲Boolean或Number。然而,只有Mac OS X 10.2或以上的版本才支持這些類型的值。如果您在您的屬性列表中加入了該關鍵字,那麼就不要同時加入LSPrefersCarbon, LSPrefersClassic,或LSRequiresClassic關鍵字。

 

Key:
Application requires Classic environment
(LSRequiresClassic)
Value:BOOL

說明

         如果該關鍵字被設爲“1”,啓動服務將只在Classic環境中運行應用程序。如果您的應用程序不應該運行在Carbon兼容環境中的話,可以使用該關鍵字。

您也可以指定該關鍵字的類型爲Boolean或Number。然而,只有Mac OS X 10.2或以上的版本才支持這些類型的值。如果您在您的屬性列表中加入了該關鍵字,那麼就不要同時加入LSPrefersCarbon, LSPrefersClassic,或LSRequiresCarbon關鍵字。

 

Key:
Application requires iPhone environment
(LSRequiresIPhoneOS)
Value:BOOL

說明

         如果應用程序不能在ipod touch上運行,設置此項爲true;

 

Key:
Application requires native environment
(LSRequiresNativeExecution)
Value:BOOL

說明

         指定應用程序是否必須在本機運行一個基於Intel的Mac上,而不是根據Rosetta模擬。指定是否要啓動該應用程序使用subbinary當前的架構。如果此鍵被設置爲“YES”,啓動服務始終運行應用程序使用當前的架構編譯的二進制代碼。您可以使用此鍵,以防止一個通用的二進制下運行的Rosetta模擬一個基於Intel的Mac上。

Key:
Application should get App Died events
(LSGetAppDiedEvents)
Value:BOOL

說明

         指定是否一個子進程死亡時通知應用程序。如果你的值設置爲YES這個關鍵,系統會發送您的應用程序kAEApplicationDied蘋果事件。

Key:
Application supports iTunes file sharing
(UIFileSharingEnabled)
Value:BOOL

說明

         應用程序支持共享   值爲 boolean 值   YES 共享;  NO 不共享

Key:
Application UI Presentation Mode
(LSUIPresentationMode)
Value:NUMBER

說明

        應用程序啓動時設置系統UI元素的可見性。確定了初始的應用程序的用戶界面模式。你可以使用這個應用程序,可能需要採取部分包含UI元素,如在Dock和菜單欄的屏幕。大多數模式的影響只出現在內容區域中的畫面,就是在屏幕的面積,不包括菜單欄的UI元素。但是,您可以要求所有的UI元素被隱藏。

Value

Description

0

Normal mode. 標準的系統UI元素可見。 默認值。

1

Content suppressed mode. In this mode, system UI elements in the content area of the screen are hidden. UI elements may show themselves automatically in response to mouse movements or other user activity. For example, the Dock may show itself when the mouse moves into the Dock’s auto-show region.

2

Content hidden mode. In this mode, system UI elements in the content area of the screen are hidden and do not automatically show themselves in response to mouse movements or user activity.

3

All hidden mode. In this mode, all UI elements are hidden, including the menu bar. Elements do not automatically show themselves in response to mouse movements or user activity.

4

All suppressed mode. In this mode, all UI elements are hidden, including the menu bar. UI elements may show themselves automatically in response to mouse movements or other user activity. This option is available only in OS X v10.3 and later.

Key:
Application uses Wi-Fi
(UIRequiresPersistentWiFi)
Value:BOOL

說明

        如果應用程序需要wi-fi才能工作,應該將此屬性設置爲true。這麼做會提示用戶,如果沒有打開wi-fi的話,打開wi-fi。爲了節省電力,iphone會在30分鐘後自動關閉應用程序中的任何wi-fi。設置這一個屬性可以防止這種情況的發生,並且保持連接處於活動狀態

Key:
Architecture priority
(LSArchitecturePriority)
Value:String

說明

        用於標識此應用程序支持的體系結構。此陣列中的字符串的順序決定優選的執行優先級的架構。

String

Description

i386

The 32-bit Intel architecture.

ppc

The 32-bit PowerPC architecture.

x86_64

The 64-bit Intel architecture.

ppc64

The 64-bit PowerPC architecture.

Key:
Bundle creator OS Type code
(CFBundleSignature)
Value:String

說明

        指定了束的創建者,類似於Mac OS 9中的文件創建者代碼。該關鍵字的值包含四字母長的代碼,用來確定每一個束。

Key:
Bundle display name
(CFBundleDisplayName)
Value:String

說明:

       這用於設置應用程序的名稱,它顯示在iphone屏幕的圖標下方。應用程序名稱限制在10-12個字符,如果超出,iphone將縮寫名稱。

Key:
Bundle identifier
(CFBundleIdentifier)
Value:String

說明

         身份證書,這個爲應用程序在iphone developer program portal web站點上設置的唯一標識符。(就是你安裝證書的時候,需要把這裏對應修改)。例如com.apple.myapp。該束標識符可以在運行時定位束。預置系統使用這個字符串來唯一地標識每個應用程序。

Key:
Bundle name
(CFBundleName)
Value:String

說明

        簡稱。簡稱應該小於16個字符並且適合在菜單和“關於”中顯示。通過把它加入到適當的.lproj子文件夾下的InfoPlist.strings文件中,該關鍵字可以被本地化。如果您本地化了該關鍵字,那您也應該提供一個CFBundleDisplayName關鍵字的本地化版本。

Key:
Bundle OS Type code
(CFBundlePackageType)
Value:String

說明

         關鍵字指定了束的類型,類似於Mac OS 9的文件類型代碼。該關鍵字的值包含一個四個字母長的代碼。應用程序的代碼是‘APPL’;框架的代碼是‘FMWK’;可裝載束的代碼是‘BND’。如果您需要,您也可以爲可裝載束選擇其他特殊的類型代碼。

Key:
Bundle version
(CFBundleVersion)
Value:String

說明

         這個會設置應用程序版本號,每次部署應用程序的一個新版本時,將會增加這個編號,在app store用的。

Key:
Bundle versions string, short
(CFBundleShortVersionString)
Value:String

說明

         指定了束的版本號。一般包含該束的主、次版本號。這個字符串的格式通常是“n.n.n”(n表示某個數字)。第一個數字是束的主要版本號,另兩個是次要版本號。該關鍵字的值會被顯示在Cocoa應用程序的關於對話框中。

該關鍵字不同於CFBundleVersion,它指定了一個特殊的創建號。而CFBundleShortVersionString的值描述了一種更加正式的並且不隨每一次創建而改變的版本號。

 

Key:
Clients allowed to add and remove tool
(SMAuthorizedClients)
Value:Array

說明

          允行添加或移除工具。具體還真不知道什麼效果。沒試出來。

Key:
Cocoa Java application
(NSJavaNeeded)
Value:BOOL

說明

         用來確定在執行該束的代碼之前Java虛擬機是否需要被載入並運行。

Key:
Copyright (human-readable)
(NSHumanReadableCopyright)
Value:String

說明

         包含了一個含有束的版權信息的字符串。您可以在“關於”對話框中顯示它。該關鍵字通常會出現在InfoPlist.strings文件中,因爲往往需要本地化該關鍵字的值。

Key:
Core Data persistent store type
(NSPersistentStoreTypeKey)
Value:String

說明

         核心數據存儲的文檔類型。

         Sqlite                                         使用SQLITE存儲數據

         XML                                            使用XML文檔存儲數據

         Binary                                         使用二進制流文件存儲數據

         Memoery                                    使用內存存儲數據。

Key:
Dock Tile plugin path
(NSDockTilePlugIn)
Value:String

說明

         停靠插件路徑。

         這個Dock可以掛載一個叫NSDockTilePlugIn的 bundle,開發這個類似很多OSGI模型開發bundle一樣,繼承NSDockTilePlugIn,然後你實現相應的methods,完之後build出來放到指定的目錄下,然後在某個特定的“動作”。

    1,build後的bundle必須放到你app下的Contents/PlugIns下,且必須在property list文件中申明,其中內容爲.docktileplugin結尾的插件名。

    2,插件必須擴展NSDockTilePlugI,當插件加載的時候, setDockTile方法就會被執行,並且返回一個NSDockTile,你可以在這裏做些其他初始化工作。

    3,你的插件和主程序可以同時updateDock title,但主程序的優先級更高。

    4,當你的application 從dock去除的時候,會把NSDockTile指向nil,在Object-C中指向nil的對象是自動釋放內存並把指針指向NULL。

 

 

Dock Plugin 主要做幾個工作:

    1,其中更改dock上application的圖標。

    2,更改badge:

   3,定義自己的menu:

加徽章(Badge)                                                          -------------圖標上的數字。

換圖標

隱藏和顯示最小化時的圖標徽章

增加自定義Dock菜單

 

         蘋果官方說明:      

The NSDockTilePlugIn protocol defines the methods implemented by plug-ins that allow an application’s Dock tile to be customized while the application is not running.

Customizing an application’s Dock tile when the application itself is not running requires that you write a plug-in. The plug-in’s principal class must implement the NSDockTilePlugIn protocol.

The name of the plugin is indicated by a NSDockTilePlugIn key in the application's Info.plist file.

 

Key:
Document types
(CFBundleDocumentTypes)
Value:array

說明

         保存了一組字典,它包含了該應用程序所支持的文檔類型。每一個字典都被稱做類型定義字典,並且包含了用於定義文檔類型的關鍵字。表A-2列出了類型定義字典中支持的關鍵字。

表 A-2 CFBundleDocumentTypes字典的關鍵字

關鍵字
類型
描述
CFBundleTypeExtensions Array 該關鍵字包含了一組映射到這個類型的文件擴展名。爲了打開具有任何擴展名的文檔,可以用單個星號“*”。該關鍵字是必須的。
CFBundleTypeIconFile String 該關鍵字指定了系統顯示該類文檔時使用的圖標文件名,該圖標文件名的擴展名是可選的。如果沒有擴展名,系統會根據平臺指定一個(例如,Mac OS 9中的.icons)。
CFBundleTypeName String 該關鍵字包含了這種文檔類型的抽象名稱。通過在適當的InforPlist.strings文件中包含該關鍵字,可以實現對它的本地化。
CFBundleTypeOSTypes Array 該關鍵字包含了一組映射到這個類型的四字母長的類型代碼。爲了打開所有類型的文檔,可以把它設爲“****”。該關鍵字是必須的。
CFBundleTypeRole String 該關鍵字定義了那些與文檔類型有關的應用程序的角色。它的值可以是Editer,Viewer,Printer,Shell或None。有關這些值的詳細描述可以參見“ 文檔的配置 。該關鍵字是必須的。
NSDocumentClass String 該關鍵字描述了被用來實例化文檔的NSDocument子類。僅供Cocoa應用程序使用。
NSExportableAs Array 該關鍵字描述了一組可以輸出的文檔類型。僅供Cocoa應用程序使用。

 

Key:
Environment variables
(LSEnvironment)
Value:Dictionary

說明

         環境變量。

Key:
Executable architectures
(LSExecutableArchitectures)
Value:Array

說明

         可執行文件框架。

          intel -  32 bit

          intel -  64 bit

          powerpc  32 bit

          powerpc   64 bit

Key:
Executable file
(CFBundleExecutable)
Value:String

說明

        應用程序的可執行文件。對於一個可加載束,它是一個可以被束動態加載的二進制文件。對於一個框架,它是一個共享庫。Project Builder會自動把該關鍵字加入到合適項目的Info.plist文件中。

Key:
Exported Type UTIs
(UTExportedTypeDeclarations)
Value:array

說明

         導出UTI(Unique Type Identifier)類型。

Key:
File quarantine enabled
(LSFileQuarantineEnabled)
Value:

Key:
Fonts provided by application
(UIAppFonts)
Value:

Key:
Get Info string
(CFBundleGetInfoString)
Value:String

說明

         CFBundleGetInfoString關鍵字含有會在束的信息窗口中顯示的純文本字符串(這裏的字符串也就是Mac OS 9中的長字符串)。該關鍵字的格式應該遵照Mac OS 9中的長字符串,例如:“2.2.1, ? Great Software, Inc, 1999”。通過把它加入到合適的.lproj目錄中的InfoPlist.strings文件中,您也可以本地化該字符串。

如果存在CFBundleGetInfoHTML的話,系統不會選擇使用該關鍵字。

 

Key:
Help Book directory name
(CFBundleHelpBookFolder)
Value:String

說明

         幫助目錄,CFBundleHelpBookFolder關鍵字含有該束的幫助文件的文件夾名字。幫助通常被本地化成一種指定的語言,所以該關鍵字指向的文件夾應該是所選擇語言的.lproj目錄中的文件夾。

 

Key:
Help Book identifier
(CFBundleHelpBookName)
Value:String

說明

         CFBundleHelpBookName指定了您的應用程序的幫助主頁。該關鍵字指定的幫助頁面名可以和HTML文件名不同。在幫助文件META標籤的CONTENT屬性中指定了幫助頁面名。

 

Key:
Help file
(CFAppleHelpAnchor)
Value:String

說明

         定義了束的初始HTML幫助文件名,不需要包括.html或.htm擴展名。這個文件位於束的本地化資源目錄中,或者如果沒有本地化資源目錄的話,則直接被放在Resources目錄中。

 

Key:
Icon already includes gloss effects
(UIPrerenderedIcon)
Value:BOOL

說明

         默認情況下,應用程序被設置了玻璃效果,把這個設置爲true可以阻止這麼做。

Key:
Icon file
(CFBundleIconFile)
Value:String

說明

         設置應用程序圖標的。CFBundleIconFile關鍵字指定了包含該束圖標的文件。您給出的文件名不需要包含“.icns”擴展名。Finder會在該束的“Resource”文件夾內尋找圖標文件。如果您的束使用了自定義的圖標,那您就必須指定該屬性。假如您沒有指定,Finder(和其他應用程序)會使用缺省的圖標來顯示您的束。

 

Key:
Icon files
(CFBundleIconFiles)
Value:String

說明

        應用程序圖標。

 

Key:
Icon files (iOS 5)
(CFBundleIcons)
Value:string

說明

        應用程序圖標。

 

Key:
Imported Type UTIs
(UTImportedTypeDeclarations)
Value:

 

Key:
Initial interface orientation
(UIInterfaceOrientation)
Value:String

說明

         確定了應用程序以風景模式還是任務模式啓動。

         Portrait(bottom home button)        堅屏,狀態條遠離HOME按鈕。

         Portrait(top home button)              堅屏,狀態條近HOME鍵,在手機上就顯示爲顛倒的顯示。

         Landscape(left home button)        橫屏:以HOME鍵在左爲基準,顯示VIEW。即手拿真機橫着時HOME按鈕在左手邊時,觀看屏幕。

         Landscape(right home button)     橫屏:以HOME鍵在右爲基準,顯示VIEW。

Key:
Installation directory base file URL
(APInstallerURL)
Value:String

說明

          指定了一個指向您希望安裝的文件的路徑。您必須以file://localhost/path/ 形式來說明這個路徑。所有被安裝的文件必須位於這個文件夾中。

Key:
Installation files
(APFiles)
Value:Dictionary

說明

        指定了一個字典,描述了您希望安裝的文件。每個字典條目可以包含某個文件或目錄的描述。您可以讓APFiles 關鍵字包含在其自身中,用於指定在目錄內部的文件。表A-8列出了用來指定有關單個文件或目錄的信息。

關鍵字
類型
描述
APFileDescriptionKey String 用來顯示在Finder的信息窗口中的簡短描述。
APDisplayedAsContainer String 如果值爲“Yes”,該項目作爲一個目錄圖標顯示在信息面板中;否則,它被顯示爲一個文檔圖標。
APFileDestinationPath String 一個安裝組件的相對路徑。
APFileName String 文件或目錄的名稱。
APFileSourcePath String 指向應用程序包中組件的路徑,相對與APInstallerURL路徑。
APInstallAction String 操縱組件的動作:“Copy”或者“Open”

 

Key:
InfoDictionary version
(CFBundleInfoDictionaryVrsion)
Value:String

說明

        指定了屬性列表結構的當前版本號。該關鍵字的存在使得可以支持Info.plist格式將來的版本。在您建立一個束時,Project Builder會自動產生該關鍵字。

Key:
Java classpaths
(NSJavaPath)
Value:String

說明

        包含了一組路徑。每一個路徑指向一個Java類。該路徑相對於由NSJavaRoot關鍵字定義的位置來說,可能是一個絕對路徑也可能是一個相對路徑。開發環境會自動把這些值保存在數組中。

 

Key:
Java root directory
(NSJavaRoot)
Value:String

說明

         一個指向一個目錄的字符串。該目錄是應用程序的Java類文件的根目錄。

Key:
Launch image
(UILaunchImageFile)
Value:string

說明

          啓動圖像。根據不同設備來設置圖片的規格大小。

Key:
Launch image (iPad)
(UILaunchImageFile~ipad)
Value:string

說明

          啓動圖像。根據不同設備來設置圖片的規格大小。

 

Key:
Launch image (iPhone)
(UILaunchImageFile~iphone)
Value:string

說明

          啓動圖像。根據不同設備來設置圖片的規格大小。

 

Key:
Localization native development region
(CFBundleDevelopmentRegion)
Value:

Key:
Localizations
(CFBundleLocalizations)
Value:String

說明

         多語言。應用程序本地化的一列表,期間用逗號隔開,例如應用程序支持英語 日語,將會適用 English,Japanese.

Key:
Localized resources can be mixed
(CFBundleAllowMixedLocalizations)
Value:

Key:
Main nib file base name
(NSMainNibFile)
Value:String

說明

         包含了一個含有應用程序的主nib文件名(不包含.nib文件擴展名)的字符串。一個nib文件作爲一個Interface Builder的存檔文件,含有對用戶界面的詳細描述信息以及那些界面中的對象之間的關聯信息。當應用程序被啓動時,主nib文件會被自動裝載。Mac OS X會尋找與應用程序名相匹配的nib文件。

 

Key:
Main nib file base name (iPad)
(NSMainNibFile~ipad)
Value:String

說明:(IPAD)

         包含了一個含有應用程序的主nib文件名(不包含.nib文件擴展名)的字符串。一個nib文件作爲一個Interface Builder的存檔文件,含有對用戶界面的詳細描述信息以及那些界面中的對象之間的關聯信息。當應用程序被啓動時,主nib文件會被自動裝載。Mac OS X會尋找與應用程序名相匹配的nib文件。

 

Key:
Main nib file base name (iPhone)
(NSMainNibFile~iphone)
Value:String

說明:(Iphone)

         包含了一個含有應用程序的主nib文件名(不包含.nib文件擴展名)的字符串。一個nib文件作爲一個Interface Builder的存檔文件,含有對用戶界面的詳細描述信息以及那些界面中的對象之間的關聯信息。當應用程序被啓動時,主nib文件會被自動裝載。Mac OS X會尋找與應用程序名相匹配的nib文件。

 

Key:
Main storyboard file base name
(UIMainStoryboardFile)
Value:string

說明

         故事板文件名。

Key:
Main storyboard file base name (iPad)
(UIMainStoryboardFile~ipad)
Value:

Key:
Main storyboard file base name (iPhone)
(UIMainStoryboardFile~iphone)
Value:

Key:
Minimum system version
(LSMinimumSystemVersion)
Value:string

說明

        最小系統版本。

Key:
Minimum system versions, per-architecture
(LSMinimumSystemVersionByArchitecture)
Value:

Key:
Plug-in dynamic registration function name
(CFPlugInDynamicRegisterFunction)
Value:

Key:
Plug-in factory interfaces
(CFPlugInFactories)
Value:

說明

         插件工廠接口。

Key:
Plug-in should be registered dynamically
(CFPlugInDynamicRegistration)
Value:BOOL

說明

         是否動態註冊插件。

 

Key:
Plug-in types
(CFPlugInTypes)
Value:dictionary

說明

         插件類型。

Key:
Plug-in unload function name
(CFPlugInUnloadFunction)
Value:string

說明

         插件卸載函數名。

Key:
Preference Pane icon file
(NSPrefPaneIconFile)
Value:

Key:
Preference Pane icon label
(NSPrefPaneIconLabel)
Value:

Key:
Preferences sync exclusion keys
(com.apple.PreferenceSync.ExcludeSyncKeys)
Value:

Key:
Principal class
(NSPrincipalClass)
Value:String

說明

          定義了一個束的主類的名稱。對於應用程序來說,缺省情況下這個名字就是應用程序的名字。

Key:
Quick Look needs to be run in main thread
(QLNeedsToBeRunInMainThread)
Value:

Key:
Quick Look preview height
(QLPreviewHeight)
Value:

Key:
Quick Look preview width
(QLPreviewWidth)
Value:

Key:
Quick Look supports concurrent requests
(QLSupportsConcurrentRequests)
Value:

Key:
Quick Look thumbnail minimum size
(QLThumbnailMinimumSize)
Value:

Key:
Renders with edge antialisasing
(UIViewEdgeAntialiasing)
Value:BOOL

說明

          用於指示在描畫不和像素邊界對齊的層時,Core Animation層是否進行抗鋸齒處理。這個特性使開發者可以在仿真器上進行更爲複雜的渲染,但是對性能會有顯著的影響。如果屬性列表上沒有這個鍵,則其缺省值爲NO。這個鍵只在iPhone OS 3.0和更高版本上支持。

如果信息屬性文件中的屬性值是顯示在用戶界面上的字符串,則應該進行本地化,特別是當Info.plist中的字符串值是與本地化語言子目錄下InfoPlist.strings文件中的字符串相關聯的鍵時。更多信息請參見“國際

化您的應用程序”部分。

 

Key:
Renders with group opacity
(UIViewGroupOpacity)
Value:BOOL

說明

         用於指示Core Animation子層是否繼承其超層的不透明特性。這個特性使開發者可以在仿真器上進行更爲複雜的渲染,但是對性能會有顯著的影響。如果屬性列表上沒有這個鍵,則其缺省值爲NO。這個鍵只在iPhone OS 3.0和更高版本上支持。

Key:
Required background modes
(UIBackgroundModes)
Value:Array

說明

        後臺執行模式。可以參見http://blog.csdn.net/fengsh998/article/details/8312764中的例子。

Key:
Required device capabilities
(UIRequiredDeviceCapabilities)
Value:Array

說明

         指定程序適用於哪些設備。

如:

當提交程序到app store時,3.0及更高版本的應用程序不再直接說明使用哪種設備,而是使用info.plist文件來確定需要哪些設備功能。iTunes通過這個所需功能的列表來確定一個應用程序能否下載到一個指定的設備並在該設備上正常運行。

例如,我在info.plist中設置如下,那麼只有居右wifi、電話功能和麥克風(內置的或附件所帶的麥克風功能)的ios設備才能運行該程序。


除了wifi和telephony項,還有很多項代表各種設備功能,如下:

sms 應用程序需要Messages應用程序或者使用sms://URL
still-camera 應用程序需要使用照相機模式作爲圖像選取器的控制器
auto-focus-camera 應用程序需要使用更多的聚焦功能以進行微距攝影或者拍攝特別清晰的圖像以進行圖像內數據檢測
video-camera 應用程序需要使用視頻模式作爲圖像選取器的控制器
accelerometer 應用程序需要特定於加速計的反饋而不知是簡單的UIViewController方向事件
location-services 應用程序需要使用Core Location
gps 應用程序需要使用Core Location並需要更加精確的gps定位
magnetometer 應用程序需要使用Core Location並需要與前進方向相關的事件,即行進的方向(通過磁力計獲得)
peer-peer 應用程序需要使用GameKit通過藍牙(3.1或更高版本)進行對等連接
opengles-1 應用程序需要OpenGL ES 1.1
opengles-2 應用程序需要OpenGL ES 2.0
armv-6 應用程序僅針對armv6指令集(3.1或更高版本)編譯
armv-7 應用程序僅針對armv7指令集(3.1或更高版本)編譯

wifi 當您的應用程序需要設備的網絡特性時,包含這個鍵。
microphone 如果您的應用程序需要使用內置的麥克風或支持提供麥克風的外設,則包含這個鍵。

telephony 如果您的應用程序需要Phone程序,則包含這個鍵。如果您的應用程序需要打開tel模式的URL,則可能需要這個特性。

 

Key:
Resources should be file-mapped
(CSResourcesFileMapped)
Value:BOOL

說明

          是否進行文件映射。指定是否將應用程序的資源映射文件到內存中。否則,他們通常讀入內存。對於經常訪問的資源數量,使用文件映射可以提高性能。然而,資源被映射到只讀存儲器,不能被修改。

Key:
Scriptable
(NSAppleScriptEnabled)
Value:BOOL

說明

          說明了該應用程序是否支持AppleScript。如果您的應用程序支持,就需要把該字符串的值設爲“Yes”。

Key:
Scripting definition file name
(OSAScriptingDefinition)
Value:String

說明

          腳本文件名。

Key:
Services
(NSServices)
Value:Array

說明

         包含了一組字典,它詳細說明了應用程序所提供的服務。

NSServices字典的關鍵字

關鍵字
類型
描述
NSPortName String 該關鍵字指定了由您的應用程序監聽器爲接受外部服務請求所提供的端口名稱。
NSMessage String 該關鍵字指定了用來調用該服務的實例方法名。在Objective-C中,實例方法的形式是messageName:userData:error:。在Java中,實例方法的形式是messageName(NSPasteBoard.String)。
NSSendTypes Array 該關鍵字指定了一組可以被該服務讀取的數據類型名。NSPasteboard類列出了幾個常用的數據類型。您必須包含此關鍵字,NSReturnTypes,或者兩者。
NSReturnTypes Array 該關鍵字指定了一組可以被該服務返回的數據類型名。NSPasteboard類列出了幾個常用的數據類型。您必須包含此關鍵字,NSSendTypes,或者兩者。
NSMenuItem Dictionary 該關鍵字包含一個字典,它指定了加入Services菜單中的文本。字典中的唯一一個關鍵字被稱爲default並且它的值是菜單項的文本。該值必須是唯一的。您可以使用斜槓“/”來指定一個子菜單。例如,Mail/Send出現在Services菜單中時就是一個帶有Send子菜單並且名爲Mail的菜單。
NSKeyEquivalent Dictionary 該關鍵字是可選的,並且包含一個含有用來請求服務菜單命令的快捷按鍵的字典。與NSMenuItem類似,字典中的唯一一個關鍵字被稱爲default並且它的值是單個的字符。用戶可以通過按下Command,Shift功能鍵和相應的字符來請求該快捷按鍵。
NSUserData String 該關鍵字是一個可選字符串,它含有您的選擇值。
NSTimeout String 該關鍵字是一個可選的數字字符串,它指定了從應用程序請求服務到收到它的響應所需要等待的毫秒數。

 

Key:
Status bar style
(UIStatusBarStyle)
Value:String

說明

         選擇三種不同格式種的一種。

         gray

         translation aplah 5.0

         black

Key:
Status bar is initially hidden
(UIStatusBarHidden)
Value:BOOL

說明

        設置是否隱藏狀態欄。YES時隱藏,FALSE時不隱藏。

Key:
Supported external accessory protocols
(UISupportedExternalAccessoryProtocols)
Value:Array

說明

        指定應用程序與外界硬件配件間支持的通迅協議,這個鍵值是一組設定,可以指定多個通迅協議。

Key:
Supported interface orientations
(UISupportedInterfaceOrientations)
Value:Array

說明

         設定應用程序的顯示模式。

Key:
Supported interface orientations (iPad)
(UISupportedInterfaceOrientations~ipad)
Value:Array

說明

         設定應用程序的顯示模式。

Key:
Supported interface orientations (iPhone)
(UISupportedInterfaceOrientations~iphone)
Value:Array

說明

         設定應用程序的顯示模式。

 

如:

iOS設備現在有三種不同的分辨率:iPhone 320x480, iPhone 4 640x960, iPad 768x1024。以前程序的啓動畫面(圖片)只要準備一個Default.png就可以了,但是現在變得複雜多了。

如果一個程序,既支持iPhone又支持iPad,那麼它需要包含下面幾個圖片:

Default-Portrait.png iPad專用豎向啓動畫面 768x1024或者768x1004

Default-Landscape.png iPad專用橫向啓動畫面 1024x768或者1024x748

Default-PortraitUpsideDown.png iPad專用豎向啓動畫面(Home按鈕在屏幕上面),可省略 768x1024或者768x1004

Default-LandscapeLeft.png iPad專用橫向啓動畫面,可省略 1024x768或者1024x748

Default-LandscapeRight.png iPad專用橫向啓動畫面,可省略 1024x768或者1024x748

Default.png iPhone默認啓動圖片,如果沒有提供上面幾個iPad專用啓動圖片,則在iPad上運行時也使用Default.png(不推薦) 320x480或者320x460

[email protected] iPhone4啓動圖片640x960或者640x920

爲了在iPad上使用上述的啓動畫面,你還需要在info.plist中加入key: UISupportedInterfaceOrientations。同時,加入值UIInterfaceOrientationPortrait, UIInterfacOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight。

 

  iOS設備現在有三種不同的分辨率:iPhone 320x480、iPhone 4 640x960、iPad 768x1024。以前程序的啓動畫面(圖片)只要準備一個 Default.png 就可以了,但是現在變得複雜多了。下面就是 CocoaChina 會員做得總結  如果一個程序,既支持iPhone又支持iPad,那麼它需要包含下面幾個圖片:Default-Portrait.png iPad專用豎向啓動畫面 768x1024或者768x1004Default-Landscape.png iPad專用橫向啓動畫面 1024x768或者1024x748Default-PortraitUpsideDown.png iPad專用豎向啓動畫面(Home按鈕在屏幕上面),可省略 768x1024或者768x1004Default-LandscapeLeft.png iPad專用橫向啓動畫面,可省略 1024x768或者1024x748Default-LandscapeRight.png iPad專用橫向啓動畫面,可省略 1024x768或者1024x748Default.png iPhone默認啓動圖片,如果沒有提供上面幾個iPad專用啓動圖片,則在iPad上運行時也使用Default.png(不推薦) 320x480或者[email protected] iPhone4啓動圖片640x960或者640x920
  爲了在iPad上使用上述的啓動畫面,你還需要在info.plist中加入key: UISupportedInterfaceOrientations。同時,加入值UIInterfaceOrientationPortrait, UIInterfacOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandscapeRight

 

Key:
Tools owned after installation
(SMPrivilegedExecutables)
Value:Dictionary

說明

         輔助工具,輔助工具必須有一個嵌入式的Info.plist中包含的“SMAuthorizedClients”的字符串數組。每個字符串是一個文本表示的代碼簽名要求描述一個客戶端,它允許添加和刪除工具。

Key:
Upgrade other bundle identifier
(UIUpgradeOtherBundleIdentifier)
Value:String

Key:
URL types
(CFBundleURLTypes)
Value:Array

說明

          包含了一組描述了應用程序所支持的URL協議的字典。它的用途類似於CFBundleDocumentTypes的作用,但它描述了URL協議而不是文檔類型。每一個字典條目對應一個單獨的URL協議。

字典的關鍵字

關鍵字
類型
描述
CFBundleTypeRole String 該關鍵字定義了那些與URL類型有關的應用程序的角色(即該應用程序與某種文檔類型的關係)。它的值可以是Editer,Viewer,Printer,Shell或None。有關這些值的詳細描述可以參見“ 文檔的配置。該關鍵字是必須的。
CFBundleURLIconFile String 該關鍵字包含了被用於這種URL類型的圖標文件名(不包括擴展名)字符串。
CFBundleURLName String 該關鍵字包含了這種URL類型的抽象名稱字符串。爲了確保唯一性,建議您使用Java包方式的命名法則。這個名字作爲一個關鍵字也會在InfoPlist.strings文件中出現,用來提供該類型名的可讀性版本。
CFBundleURLSchemes Array 該關鍵字包含了一組可被這種類型處理的URL協議。例如:http,ftp等。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章