iPod Touch canOpenURL类型tel:// [英] iPod Touch canOpenURL of type tel://

查看:204
本文介绍了iPod Touch canOpenURL类型tel://的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行iOS 8.0(12A365)的iPod Touch上, canOpenURL:返回 YES > tel:// URL scheme。

On an iPod Touch running iOS 8.0 (12A365), canOpenURL: returns YES for tel:// URL schemes.

此外, openURL: 延迟5 - 10秒后

UIApplication *application = [UIApplication sharedApplication];
NSURL *url = [NSURL URLWithString:@"tel://"];

if ([application canOpenURL:url])
{
    [application openURL:url];
}

任何人都知道为什么 canOpenURL:不会为iPod返回 NO ? facetime URL方案不同('facetime://'),因此理论上它应该返回 NO

Anyone know why canOpenURL: doesn't return NO for iPod? The facetime URL scheme is different ('facetime://') so in theory it should return NO.

不幸的是,我没有iOS7的iPod来测试,所以我不能孤立的问题只有iOS8。

Unfortunately I don't have an iPod with iOS7 to test, so I can't isolate the problem to only iOS8.

推荐答案

我不知道我在这里是否有帮助,因为我没有自己的iPod来测试它,但在Mac上,您可以打开一个 tel:// 方案太启动FaceTime。这可以通过附近的iPhone拨打任何电话号码。

Hm I'm not sure whether I'm being helpful here as I don't own an iPod to test it but on Mac you can open a URL with a tel:// scheme too which launches FaceTime. This can call via a nearby iPhone any phone number.

我不知道这是否是iPod模型的情况。

I don't know whether this is the case for the iPod models too though.

这篇关于iPod Touch canOpenURL类型tel://的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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