首页 > 编程语言 > 详细

swift禁用webView对H5中数字,链接,日期,地址,电话号码做解析

时间:2016-07-01 16:17:47      阅读:140      评论:0      收藏:0      [点我收藏+]
showWebView.dataDetectorTypes = .None //swift禁用webView对H5中数字,链接,日期,地址,电话号码做解析
其UIDataDetectorTypes属性:
    static var PhoneNumber: UIDataDetectorTypes { get }    // Phone number detection
    static var Link: UIDataDetectorTypes { get }           // URL detection    
    static var Address: UIDataDetectorTypes { get }        // Street address detection
    static var CalendarEvent: UIDataDetectorTypes { get }  // Event detection
    static var None: UIDataDetectorTypes { get }           // No detection at all
    static var All: UIDataDetectorTypes { get }            // All types

 

swift禁用webView对H5中数字,链接,日期,地址,电话号码做解析

原文:http://www.cnblogs.com/chendiangoal/p/5633296.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!