如何检查ios设备中的Facetime支持(硬件检查) [英] How to check Facetime Support in ios devices (harware check)

查看:144
本文介绍了如何检查ios设备中的Facetime支持(硬件检查)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查我使用的ios设备是否支持facetime通话。我不想检查设备上的ios版本,而是设备是否有硬件支持来启动facetime调用。例如:我有一个ios版本4.0及更高版本的ipad1,但如果我没有相机(或前置摄像头),则不应启动facetime调用。有没有人知道如何做到这一点。我一直在网上搜索,但仍然没有找到一个可靠的方法来做到这一点。请帮助

I want to check if ios device i am using has a support for facetime call. I dont want to check the ios version on the device, rather if the device has the hardware support to initiate a facetime call. For eg : i have an ipad1 with ios version 4.0 and above, but if i dont have a camera (or a front camera) , the facetime call should not initiate. Does anybody have an idea how to do this. I have been searching a lot online, but still havent found a solid way to do it. Please help

推荐答案

尝试使用FaceTime方案的 canOpenUrl 方法,如下所示:

Try using canOpenUrl method with FaceTime scheme, as follows:

[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];

这篇关于如何检查ios设备中的Facetime支持(硬件检查)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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