UIWebView没有检测到电话号码链接 [英] UIWebView doesn't detect phone number links
本文介绍了UIWebView没有检测到电话号码链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在构建一个带有UIWebView的应用程序.
I'm building an app with a UIWebView in it.
webView应该加载包含tel:链接的html:
The webView should load html that includes tel: links:
<a href="tel:123456789">call me</a>
webView不会使致电我"链接可点击.
The webView doesn't make the "call me" link to be clickable.
我尝试了
webView.dataDetectorTypes = UIDataDetectorTypePhoneNumber
但是不起作用.
我查看了所有stackOverflow问题与解答,没有找到针对此问题的答案.
I looked in all the stackOverflow Q&A's and found no answer specific to this problem.
感谢您的帮助, 努尔
推荐答案
替换
<a href="tel:123456789"> call me </a>
使用
<a href="tel://123456789">call me</a>
希望它对您有用.
这篇关于UIWebView没有检测到电话号码链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文