如何防止iPhone应用程序在非视网膜设备上运行? [英] How to prevent iphone app from running on non-retina device?

查看:43
本文介绍了如何防止iPhone应用程序在非视网膜设备上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用只能在Retina设备上运行.如何禁用对非Retina iPhone的支持?有可能吗?

I want my app to run on Retina devices only. How do i disable supporting non-Retina iPhone? Is that possible?

推荐答案

由于iPhone 3G,3G,4、4S的屏幕尺寸相同;您将无法找出其中哪一个是视网膜显示(AFAIK).但是,从iPhone4起,该设备具有前置摄像头,因此,您可以使用它.您可以让您的应用程序需要前置摄像头(仅作为示例;还有其他硬件,这是iPhone4新引入的).

As the screen size is same for iPhone 3G, 3Gs, 4, 4S; You won't be able to find out which one is retina display among them (AFAIK). But, from iPhone4 the device is having front facing camera, so, You can use that. You can have your App require front-facing camera (Just an example; there are other hardwares too, newly introduced from iPhone4) device capability.

这些是使用 UIRequiredDeviceCapabilities 键在应用程序的plist文件中指定的.

These are specified in the plist file for the app using the UIRequiredDeviceCapabilities key.

前置摄像头,它将仅限于具有消除3G和3GS(非视网膜显示器)的设备.

A front-facing camera, that would limit it to those devices that have that, eliminating the 3G and 3GS (They are Non-retina displays).

有关更多详细信息, UIRequiredDeviceCapabilities

For more details UIRequiredDeviceCapabilities

这篇关于如何防止iPhone应用程序在非视网膜设备上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆