How do you remove links from UIWebView?

前端 未结 2 1439
忘了有多久
忘了有多久 2021-01-06 16:52

I\'m using UIWebView on my iPhone application. How do I remove the links that ios put by it self. For example I have some double value and ios think it\'s a phone number and

2条回答
  •  执念已碎
    2021-01-06 17:32

    In the of the html, you can put:

    
    

    Safari HTML Reference:

    By default, Safari on iOS detects any string formatted like a phone number and makes it a link that calls the number. Specifying telephone=no disables this feature.

    Or to unset this detection from a web view programatically using the dataDetectorTypes mask:

    webView.dataDetectorTypes &= ~UIDataDetectorTypePhoneNumber;
    

提交回复
热议问题