本文介绍了如何检查iOS设备中的Facetime支持(硬件检查)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想检查我使用的iOS设备是否支持Facetime通话.我不想检查设备上的iOS版本,而是要检查设备是否具有发起Facetime通话的硬件支持.
I want to check if iOS device I am using has support for Facetime call. I don't want to check the iOS version on the device, rather if the device has the hardware support to initiate a Facetime call.
例如:我有一台iOS 1和更高版本的iPad 1,但没有摄像头(或前置摄像头)的iOS 4.0,则不应启动Facetime通话.我该怎么办?
For example: I have an iPad 1 with iOS version 4.0 and above, but if I don't have a camera (or a front camera), the Facetime call should not initiate. How can I do this?
推荐答案
尝试通过FaceTime方案使用canOpenUrl
方法,如下所示:
Try using canOpenUrl
method with FaceTime scheme, as follows:
[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];
这篇关于如何检查iOS设备中的Facetime支持(硬件检查)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!