`
keren
  • 浏览: 1578971 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

flex iSO设备上的特殊功能key

    博客分类:
  • Flex
 
阅读更多
苹果系统支持的key:
http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

Air里面的设置详细:
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f7e64a7f12cd2dd1867-8000.html

UIKit Keys

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 to NO, 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.

Important: Do not insert this key manually into your Info.plist files. Xcode inserts it automatically based on the value in the Targeted Device Family build setting. You should use that build setting to change the value of the key.
The value of this key is usually an integer but it can also be an array of integers. Table 3 lists the possible integer values you can use and the corresponding devices.

Table 3  Values for the UIDeviceFamily key
Value
Description
1
(Default) The application runs on iPhone and iPod touch devices.
2
The application runs on iPad devices.
This key is supported in iOS 3.2 and later.

UIFileSharingEnabled

UIFileSharingEnabled (Boolean - iOS) specifies whether the application shares files through iTunes. If this key is YES, the application shares files. If it is not present or is NO, the application does not share files. Applications must put any files they want to share with the user in their <Application_Home>/Documents directory, where <Application_Home> is the path to the application’s home directory.

In iTunes, the user can access an application’s shared files from the File Sharing section of the Apps tab for the selected device. From this tab, users can add and remove files from the directory.

This key is supported in iOS 3.2 and later.

UIInterfaceOrientation

UIInterfaceOrientation (String - iOS) specifies the initial orientation of the application’s user interface.

This value is based on the UIInterfaceOrientation constants declared in the UIApplication.h header file. The default style is UIInterfaceOrientationPortrait.

UILaunchImageFile

UILaunchImageFile (String - iOS) specifies the name of the launch image file for the application. If this key is not specified, the system assumes a name of Default.png. This key is typically used by universal applications when different sets of launch images are needed for iPad versus iPhone or iPod touch devices.

If you include this key in your Info.plist file, any launch images you include in your application’s bundle should be based on the string. For example, suppose you want to include portrait and landscape launch images for iPad using the base name MyiPadImage.png. You would include the UILaunchImageFile~ipad key in your Info.plist file and set its value to MyiPadImage.png. You would then include a MyiPadImage-Portrait.png file and a MyiPadImage-Landscape.png file in your bundle to specify the corresponding launch images.

This key is supported in iOS 3.2 and later.

UIPrerenderedIcon

UIPrerenderedIcon (Boolean - iOS) specifies whether the application’s icon already contains a shine effect. If the icon already has this effect, you should set this key to YES to prevent the system from adding the same effect again. All icons automatically receive a rounded bezel regardless of the value of this key.

Value
Description
YES
iOS does not apply a shine effect to the application icon.
NO
(Default) iOS applies a shine effect to the application icon.
UIRequiredDeviceCapabilities

UIRequiredDeviceCapabilities (Array or Dictionary - iOS) lets iTunes and the App Store know which device-related features an application requires in order to run. iTunes and the mobile App Store use this list to prevent customers from installing applications on a device that does not support the listed capabilities.

If you use an array, the presence of a given key indicates the corresponding feature is required. If you use a dictionary, you must specify a Boolean value for each key. If the value of this key is true, the feature is required. If the value of the key is false, the feature must not be present on the device. In both cases, omitting a key indicates that the feature is not required but that the application is able to run if the feature is present.

Table 4 lists the keys that you can include in the array or dictionary associated with the UIRequiredDeviceCapabilities key. You should include keys only for the features that your application absolutely requires. If your application can accommodate missing features by avoiding the code paths that use those features, do not include the corresponding key.

Table 4  Dictionary keys for the UIRequiredDeviceCapabilities key
Key
Description
telephony
Include this key if your application requires (or specifically prohibits) the presence of the Phone application. You might require this feature if your application opens URLs with the tel scheme.
wifi
Include this key if your application requires (or specifically prohibits) access to the networking features of the device.
sms
Include this key if your application requires (or specifically prohibits) the presence of the Messages application. You might require this feature if your application opens URLs with the sms scheme.
still-camera
Include this key if your application requires (or specifically prohibits) the presence of a camera on the device. Applications use the UIImagePickerController interface to capture images from the device’s still camera.
auto-focus-camera
Include this key if your application requires (or specifically prohibits) auto-focus capabilities in the device’s still camera. Although most developers should not need to include this key, you might include it if your application supports macro photography or requires sharper images in order to do some sort of image processing.
front-facing-camera
Include this key if your application requires (or specifically prohibits) the presence of a forward-facing camera. Applications use the UIImagePickerController interface to capture video from the device’s camera.
camera-flash
Include this key if your application requires (or specifically prohibits) the presence of a camera flash for taking pictures or shooting video. Applications use the UIImagePickerController interface to control the enabling of this feature.
video-camera
Include this key if your application requires (or specifically prohibits) the presence of a camera with video capabilities on the device. Applications use the UIImagePickerController interface to capture video from the device’s camera.
accelerometer
Include this key if your application requires (or specifically prohibits) the presence of accelerometers on the device. Applications use the classes of the Core Motion framework to receive accelerometer events. You do not need to include this key if your application detects only device orientation changes.
gyroscope
Include this key if your application requires (or specifically prohibits) the presence of a gyroscope on the device. Applications use the Core Motion framework to retrieve information from gyroscope hardware.
location-services
Include this key if your application requires (or specifically prohibits) the ability to retrieve the device’s current location using the Core Location framework. (This key refers to the general location services feature. If you specifically need GPS-level accuracy, you should also include the gps key.)
gps
Include this key if your application requires (or specifically prohibits) the presence of GPS (or AGPS) hardware for greater accuracy when tracking locations. If you include this key, you should also include the location-services key. You should require GPS only if your application needs more accurate location data than the cell or Wi-fi radios might otherwise allow.
magnetometer
Include this key if your application requires (or specifically prohibits) the presence of magnetometer hardware. Applications use this hardware to receive heading-related events through the Core Location framework.
gamekit
Include this key if your application requires (or specifically prohibits) Game Center (iOS 4.1 and later.)
microphone
Include this key if your application uses the built-in microphone or supports accessories that provide a microphone.
opengles-1
Include this key if your application requires (or specifically prohibits) the presence of the OpenGL ES 1.1 interfaces.
opengles-2
Include this key if your application requires (or specifically prohibits) the presence of the OpenGL ES 2.0 interfaces.
armv6
Include this key if your application is compiled only for the armv6 instruction set. (iOS v3.1 and later.)
armv7
Include this key if your application is compiled only for the armv7 instruction set. (iOS v3.1 and later.)
peer-peer
Include this key if your application requires (or specifically prohibits) peer-to-peer connectivity over Bluetooth. (iOS v3.1 and later.)
This key is supported in iOS 3.0 and later.

UIRequiresPersistentWiFi

UIRequiresPersistentWiFi (Boolean - iOS) specifies whether the application requires a Wi-Fi connection. iOS maintains the active Wi-Fi connection open while the application is running.

Value
Description
YES
iOS opens a Wi-Fi connection when this application is launched and keeps it open while the application is running. Use with Wi-Fi–based applications.
NO
(Default) iOS closes the active Wi-Fi connection after 30 minutes.
Note: If an iPad contains applications that use push notifications and subsequently goes to sleep, the device’s active WiFi connection automatically remains associated with the current access point if cellular service is unavailable or out of range.
UIStatusBarHidden

UIStatusBarHidden (Boolean - iOS) specifies whether the status bar is initially hidden when the application launches.

Value
Description
YES
Hides the status bar.
NO
Shows the status bar.
UIStatusBarStyle

UIStatusBarStyle (String - iOS) specifies the style of the status bar as the application launches.

This value is based on the UIStatusBarStyle constants declared in UIApplication.h header file. The default style is UIStatusBarStyleDefault.

UISupportedExternalAccessoryProtocols

UISupportedExternalAccessoryProtocols (Array - iOS) specifies the protocols that your application supports and can use to communicate with external accessory hardware. Each item in the array is a string listing the name of a supported communications protocol. Your application can include any number of protocols in this list and the protocols can be in any order. The system does not use this list to determine which protocol your application should choose; it uses it only to determine if your application is capable of communicating with the accessory. It is up to your code to choose an appropriate communications protocol when it begins talking to the accessory.

This key is supported in iOS 3.0 and later. For more information about communicating with external accessories, see “Communicating with External Accessories” in iOS Application Programming Guide.

UISupportedInterfaceOrientations

UISupportedInterfaceOrientations (Array - iOS) specifies the interface orientations your application supports. The system uses this information (along with the current device orientation) to choose the initial orientation in which to launch your application. The value for this key is an array of strings. Table 5 lists the possible string values you can include in the array.

Table 5  Supported orientations
Value
Description
UIInterfaceOrientationPortrait
The device is in portrait mode, with the device held upright and the home button at the bottom. If you do not specify any orientations, this orientation is assumed by default.
UIInterfaceOrientationPortraitUpsideDown
The device is in portrait mode but upside down, with the device held upright and the home button at the top.
UIInterfaceOrientationLandscapeLeft
The device is in landscape mode, with the device held upright and the home button on the left side.
UIInterfaceOrientationLandscapeRight
The device is in landscape mode, with the device held upright and the home button on the right side.
This key is supported in iOS 3.2 and later.

UIViewEdgeAntialiasing

UIViewEdgeAntialiasing (Boolean - iOS) specifies whether Core Animation layers use antialiasing when drawing a layer that is not aligned to pixel boundaries.

Value
Description
YES
Use antialiasing when drawing a layer that is not aligned to pixel boundaries. This option allows for more sophisticated rendering in the simulator but can have a noticeable impact on performance.
NO
(Default) Do not use antialiasing.
This key is supported in iOS 3.0 and later.

UIViewGroupOpacity

UIViewGroupOpacity (Boolean - iOS) specifies whether Core Animation sublayers inherit the opacity of their superlayer.

Value
Description
YES
Inherit the opacity of the superlayer. This option allows for more sophisticated rendering in the simulator but can have a noticeable impact on performance.
NO
(Default) Do not inherit the opacity of the superlayer.
This key is supported in iOS 3.0 and later.
分享到:
评论

相关推荐

    Chrome OS Flex iso

    Chrome OS Flex iso 谷歌系统 浏览器系统

    flex特殊效果实例

    本资源"Flex源码大合集"是一个集合,包含了多种Flex项目的源代码实例,适用于开发者深入学习和理解Flex的特殊效果和功能。 1. **Flex框架**:Flex框架是Adobe提供的一个开发工具,它允许开发者使用MXML和...

    flex图片上传带预览功能

    flex图片上传带预览功能。Flex,Flex

    一个用Flex做的项目 (功能非常强大!)

    尽管近年来Flash Player在移动设备上的支持逐渐减少,但在桌面浏览器上,它仍然是运行Flex应用的常用平台。 6. RIA特性:Flex应用作为RIA,具备离线存储、实时数据更新、多媒体集成等特性,能提供类似桌面应用的...

    flex实现的翻书功能的网站漂亮的flex实现swf及源码

    在本案例中,"flex实现的翻书功能的网站漂亮的flex实现swf及源码",显然指的是使用Flex技术创建了一个模拟真实书籍翻页效果的交互式Web应用。这个应用不仅提供了视觉上的吸引力,还具有高度的用户参与度,让浏览者...

    Flex ComBox 下拉树功能

    Flex ComBox是一款基于Adobe Flex的UI组件,它提供了一种灵活的方式来展示下拉选项,而下拉树功能则是其中一种增强型的交互设计。在Flex应用中,这种组件允许用户从一个可折叠的树结构中选择值,适用于数据层级关系...

    flex组件,功能强大的下拉框

    考虑到前端开发的多样性,这个Flex组件应确保在主流浏览器和设备上都能正常工作,包括移动设备和平板电脑。 9. **测试与调试** 为了确保组件的稳定性和可靠性,需要进行充分的单元测试、集成测试以及浏览器兼容性...

    Flex所有功能演示及代码.rar

    这个名为"Flex所有功能演示及代码.rar"的压缩包文件,显然包含了全面展示Flex功能的示例代码和相关资源,便于学习者或开发者理解和应用Flex的各种功能。 在Flex中,ActionScript是其主要的编程语言,它是一种基于...

    Flex 打印及打印预览功能

    Flex是由Adobe公司开发的一种开源富互联网...综上所述,Flex的打印及打印预览功能为企业级应用提供了强大的数据输出能力,开发者可以通过熟练掌握这些API来实现各种复杂的打印需求,提高应用程序的专业性和用户满意度。

    WEB项目集成Flex3功能

    3. **WEB项目集成Flex功能**:Web项目中嵌入Flex组件,这是本文所介绍的方法,即在现有的Web应用基础上添加Flex功能。 为了实现这一集成,首先需要确保开发环境准备妥当,包括安装MyEclipse 7.5、Flex Builder 4 ...

    Flex万年历记事本_flex源码

    10. **响应式设计**:考虑到跨设备兼容性,开发者可能使用Flex的弹性布局(Flexbox)或响应式设计技术,确保万年历记事本能适应不同屏幕尺寸的设备。 通过对"Flex万年历记事本"的源码学习,开发者不仅可以了解Flex...

    Flex DateChooser 为日期添加特殊颜色

    要实现为特定日期添加特殊颜色的功能,我们需要深入到DateChooser的内部工作原理。Flex提供了一个叫做`dateCellFactory`的属性,这个属性允许我们自定义日历中的每一个日期单元格。我们可以创建一个新的函数作为`...

    Flex Flex Flex Flex

    Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex Flex ...

    Flex在线拍照功能

    Flex在线拍照功能是一种基于Adobe Flex技术的Web应用特性,它结合了Flash技术,使得用户可以在浏览器上实现类似于手机或电脑自带摄像头的拍照体验。Flex是一个开源的开发框架,主要用于构建富互联网应用程序(Rich ...

    FLEX 图片浏览功能可以轻松实现图片浏览

    在这个场景中,我们聚焦于FLEX在图片浏览功能上的应用。 标题提及的"“FLEX 图片浏览功能可以轻松实现图片浏览”",这指的是使用Flex3开发的图片查看器应用,它允许用户方便地查看和浏览图片,同时可能还支持一些...

    flex实现计算器功能

    flex基础列子,利用flex技术实现计算器功能

    Flex涂鸦功能Demo程序下载

    Flex涂鸦功能Demo程序是一个基于Adobe Flex技术实现的互动绘图应用。Flex是一种开源的、基于ActionScript 3.0的开发框架,主要用于构建富互联网应用程序(RIA)。它提供了丰富的用户界面组件和强大的数据绑定机制,...

Global site tag (gtag.js) - Google Analytics