iphone UIRequiredDeviceCapabilities 运行设备
2010-08-16 11:25
204 查看
info.list用源码方式打开,编辑。例子如下。
根据你的需求,添加。
<key>UIRequiredDeviceCapabilities</key>
<dict>
<key>front-facing-camera</key>
<true/>
<key>sms</key>
<true/>
</dict>
API 详细说明[b]。[/b]
[b]UIRequiredDeviceCapabilities[/b]
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
Table 4 Dictionary keys for the
根据你的需求,添加。
<key>UIRequiredDeviceCapabilities</key>
<dict>
<key>front-facing-camera</key>
<true/>
<key>sms</key>
<true/>
</dict>
API 详细说明[b]。[/b]
[b]UIRequiredDeviceCapabilities[/b]
UIRequiredDeviceCapabilities(
Arrayor
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
UIRequiredDeviceCapabilitieskey. 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
UIRequiredDeviceCapabilitieskey
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 telscheme. |
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 smsscheme. |
still-camera | Include this key if your application requires (or specifically prohibits) the presence of a camera on the device. Applications use the UIImagePickerControllerinterface 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 UIImagePickerControllerinterface 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 UIImagePickerControllerinterface 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 UIImagePickerControllerinterface 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 gpskey.) |
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-serviceskey. 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. |
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.) |
相关文章推荐
- 分享iPhone判断程序运行设备的代码
- iPhone开发入门(6)--- 设备上运行程序
- Xcode运行设备由iphone/ipad变为my mac的解决方
- iPhone 通过UIRequiredDeviceCapabilities指定程序适用于哪些设备
- VMWare虚拟机中的MacOSX使用XCode运行无法连接iPhone设备
- Xcode运行设备由iphone/ipad变为my mac的解决方
- VMWare虚拟机中的MacOSX使用XCode运行无法连接iPhone设备
- iPhone开发入门(10)— 设备上运行程序
- iPhone 通过UIRequiredDeviceCapabilities指定程序适用于哪些设备
- iPhone 通过UIRequiredDeviceCapabilities指定程序适用于哪些设备
- iPhone开发入门(10)--- 设备上运行程序
- 声称可解锁运行iOS 11的设备 包括iPhone X
- iPhone 通过UIRequiredDeviceCapabilities指定程序适用于哪些设备
- iPhone 通过UIRequiredDeviceCapabilities指定程序适用于哪些设备
- 真机运行失败,iphone设备uuid不存在
- iOS开发——关于拷贝的iOS工程在其他电脑上不能真机和模拟器运行,即只有MyMac设备,没有其他设备
- navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) 判断是不是 移动设备 'ontouchstart' in window; 判断支不支
- 检测iPhone/iPod Touch/iPad设备类型 .
- iOS 开发中区分当前iPhone或iPad设备
- iPhone编译和运行