iOS 5电话链接不起作用 [英] iOS 5 tel link not working

查看:80
本文介绍了iOS 5电话链接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了一个具有简单tel链接的应用程序:

I built an app that has a simple tel link:

- (IBAction) makeCall:(id)sender
{
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8005555555"]];
}

当我在iOS 4上进行测试时,效果很好.

It worked fine when I was testing on iOS 4.

就在我发布它之前,我已升级到iOS 5,现在我发现tel链接不起作用.有人知道这可能与iOS 5有关吗?还是我叫错了树?

Just before I released it, I upgraded to iOS 5, and now I find that the tel link isn't working. Does anyone know if this might be something to do with iOS 5, or am I barking up the wrong tree?

更新:这是针对我为所工作的公司开发的应用程序,并且为了对其进行修复,我的老板必须让我访问代码,而他却在拖延脚步.只要有访问权限,我就会立即进行更新,并找出ott提供的解决方案是否有效.

UPDATE: This is for an app I built for the company I work for, and in order to fix it, my boss has to give me access to the code, which he's kind of dragging his feet with. I'll update as soon as I have access and can find out if the solution ott gave works.

推荐答案

正确的URL应该为tel:8005555555.可能是//之前被忽略了.

The correct URL should be tel:8005555555. It could be that the // were ignored earlier.

另请参见 http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html

这篇关于iOS 5电话链接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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