码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-07-01 16:19:07      阅读:151      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!