且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

你如何在移动野生动物园中检测电话号码

更新时间:2022-03-27 22:42:58

好的。经过相当多的充实,我觉得我找到了一个奇怪的工作。使用dataDetectorTypes的问题是它将禁用整个uiwebveiw的电话号码检测。

OK. After quite a bit of futzing I think I found a strange work around. The problem with using dataDetectorTypes is that it will disable phone number detection for the whole uiwebveiw.

在span和标签上尝试datadetectors =off和x-apple-data-detectors =false属性后,我终于偶然发现了一些似乎阻止手机的东西数字检测。

After trying datadetectors="off" and x-apple-data-detectors="false" attribute on span and a tags I finally stumbled on something that seems to prevent phone number detection.

如果我将文本包装在带有href =#的标签中,苹果似乎不管它。

If I wrap my text in an a tag with an href="#" apple seems to leave it alone.