现在的位置: 首页 > 综合 > 正文

info.plist 说明 [官方]

2013年08月06日 ⁄ 综合 ⁄ 共 5863字 ⁄ 字号 评论关闭

UIKit Keys

转自:http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

The UIKit framework provides the infrastructure you need for creating iOS applications. You use the keys associated with this framework to configure the appearance of your application at launch time and the behavior of your application once it is running.

UIKit keys use the prefix UI to distinguish them from other keys. For more information about using UIKit to create and configure iOS applications, see iOS Application Programming Guide.


Key Summary

Table 1 contains an alphabetical listing of UIKit keys, the corresponding name for that key in the Xcode property list editor, a high-level description of each key, and the platforms on which you use it. Detailed information about each key is available in later sections.

Table 1  Summary of UIKit keys

Key

Xcode name

Summary

Availability

UIAppFonts

"Fonts provided by application”

Specifies a list of application-specific fonts. See “UIAppFonts” for details.

iOS 3.2 and later

UIApplicationExitsOnSuspend

"Application does not run in background”

Specifies whether the application terminates instead of run in the background. See “UIApplicationExitsOnSuspend” for details.

iOS 4.0 and later

UIBackgroundModes

"Required background modes”

Specifies that the application needs to continue running in the background. See “UIBackgroundModes” for details.

iOS 4.0 and later

UIDeviceFamily

"Targeted device family”

Inserted automatically by Xcode to define the target device of the application. See “UIDeviceFamily” for details.

iOS 3.2 and later

UIFileSharingEnabled

"Application supports iTunes file sharing”

Specifies whether the application shares files with the user’s computer through iTunes. See “UIFileSharingEnabled” for details.

iOS 3.2 and later

UIInterfaceOrientation

“Initial interface orientation”

Specifies the initial orientation of the application’s user interface. See “UIInterfaceOrientation” for details.

iOS

UILaunchImageFile

"Launch image”

Specifies the name of the application’s launch image. See “UILaunchImageFile” for details.

iOS 3.2 and later

UIPrerenderedIcon

"Icon already includes gloss effects”

Specifies whether the application’s icon already includes a shine effect. See “UIPrerenderedIcon” for details.

iOS

UIRequiredDeviceCapabilities

"Required device capabilities”

Specifies the device-related features required for the application to run. See “UIRequiredDeviceCapabilities” for details.

iOS 3.0 and later

UIRequiresPersistentWiFi

"Application uses Wi-Fi”

Specifies whether this application requires a Wi-Fi connection. See “UIRequiresPersistentWiFi” for details.

iOS

UIStatusBarHidden

"Status bar is initially hidden”

Specifies whether the status bar is initially hidden when the application launches. See “UIStatusBarHidden” for details.

iOS

UIStatusBarStyle

"Status bar style”

Specifies the style of the status bar as the application launches. See “UIStatusBarStyle” for details.

iOS

UISupportedExternalAccessoryProtocols

"Supported external accessory protocols”

Specifies the communications protocols supported for communication with attached hardware accessories. See“UISupportedExternalAccessoryProtocols” for details.

iOS 3.0 and later

UISupportedInterfaceOrientations

"Supported interface orientations”

Specifies the orientations that the application supports. See “UISupportedInterfaceOrientations” for details.

iOS 3.2 and later

UIViewEdgeAntialiasing

"Renders with edge antialiasing”

Specifies whether Core Animation layers use antialiasing when drawing does not align to pixel boundaries. See “UIViewEdgeAntialiasing” for details.

iOS 3.0 and later

UIViewGroupOpacity

"Renders with group opacity”

Specifies whether Core Animation layers inherit the opacity of their superlayer. See “UIViewGroupOpacity” for details.

iOS 3.0 and later


UIAppFonts

UIAppFonts (Array - iOS) specifies any application-provided fonts that should be made available through the normal mechanisms. Each item in the array is a string containing the name of a font file (including filename extension) that is located in the application’s bundle. The system loads the specified fonts and makes them available for use by the application when that application is run.

This key is supported in iOS 3.2 and later.


UIApplicationExitsOnSuspend

UIApplicationExitsOnSuspend (Boolean - iOS) specifies that the application should be terminated rather than moved to the background when it is quit. Applications linked against iOS SDK 4.0 or later can include this key and set its value to YES to prevent being automatically opted-in to background execution and application suspension. When the value of this key is YES, the application is terminated and purged from memory instead of moved to the background. If this key is not present, or is set toNO, the application moves to the background as usual.

This key is supported in iOS 4.0 and later.


UIBackgroundModes

UIBackgroundModes (Array - iOS) specifies that the application provides specific background services and must be allowed to continue running while in the background. These keys should be used sparingly and only by applications providing the indicated services. Where alternatives for running in the background exist, those alternatives should be used instead. For example, applications can use the signifiant location change interface to receive location events instead of registering as a background location application.

Table 2 lists the possible string values that you can put into the array associated with this key. You can include any or all of these strings but your application must provide the indicated services.

Table 2  Values for the UIBackgroundModes array

Value

Description

audio

The application plays audible content in the background.

location

The application provides location-based information to the user and requires the use of the standard location services (as opposed to the significant change location service) to implement this feature.

voip

The application provides Voice-over-IP services. Applications with this key are automatically launched after system boot so that the application can reestablish VoIP services.

This key is supported in iOS 4.0 and later.


UIDeviceFamily

UIDeviceFamily (Number or Array - iOS) specifies the underlying hardware type on which this application is designed to run.

The value of this key is usually an integer but it can also be an array of integers. Table 3 lists the possible int

抱歉!评论已关闭.