更新时间:2022-03-27 22:43:04
确定.经过一番摸索之后,我想我发现了一个奇怪的工作.使用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.