[英]iPod Touch canOpenURL of type tel://
On an iPod Touch running iOS 8.0 (12A365), canOpenURL:
returns YES
for tel://
URL schemes. 在运行iOS 8.0(12A365)的iPod Touch上, canOpenURL:
对于tel://
URL方案返回YES
。
Also, openURL:
returns nil, after a 5 - 10 second delay . 此外, openURL:
在延迟5-10秒后返回nil。
UIApplication *application = [UIApplication sharedApplication];
NSURL *url = [NSURL URLWithString:@"tel://"];
if ([application canOpenURL:url])
{
[application openURL:url];
}
Anyone know why canOpenURL:
doesn't return NO
for iPod? 任何人都知道为什么canOpenURL:
不会为iPod返回NO
? The facetime URL scheme is different ('facetime://') so in theory it should return NO
. facetime URL方案是不同的('facetime://')所以理论上它应该返回NO
。
Unfortunately I don't have an iPod with iOS7 to test, so I can't isolate the problem to only iOS8. 不幸的是我没有带iOS7的iPod进行测试,所以我无法将问题仅隔离到iOS8。
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. 嗯,我不确定我是否在这里有所帮助,因为我没有iPod来测试它,但在Mac上,你可以用tel://
方案打开一个URL,启动FaceTime。 This can call via a nearby iPhone any phone number. 这可以通过附近的iPhone拨打任何电话号码。
I don't know whether this is the case for the iPod models too though. 我不知道iPod型号是否也是如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.