简体   繁体   English

是否可以支持iPad1但不支持iPhone3GS?

[英]Is it possible to support the iPad1 but not the iPhone3GS?

I have been looking at removing support for iPhone3GS for a title I am developing. 我一直在考虑删除我正在开发的标题对iPhone3GS的支持。 I realise I can use the device capabilities to stop people using certain devices but I cant find a specific setting which would stop the support for only the 3GS? 我意识到我可以使用设备功能来阻止人们使用某些设备,但是我找不到可以停止仅支持3GS的特定设置吗?

Thanks 谢谢

You can detect for a forward facing camera, which was introduced in the iPhone 4, with 您可以检测到iPhone 4中引入的前置摄像头,

if( [UIImagePickerController isCameraDeviceAvailable: 
         UIImagePickerControllerCameraDeviceFront ])
{
   // do something
} else {
   // you have an iPhone 3GS or less
}

I'm assuming you are not supporting models less than 4. If not, and you only want to eliminate the 3GS specifically, but allow the iPhone 3G, you can check for video capability. 我假设您不支持小于4的型号。如果不支持,则只想取消3GS,但允许使用iPhone 3G,则可以检查视频功能。 3GS has it, 3 and less don't. 3GS拥有3个,而3GS则没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM