UITextView中检测链接时,如何过滤掉日期等

// 这个是默认的
textView.dataDetectorTypes = UIDataDetectorTypeAll;
// 保留电话和链接
textView.dataDetectorTypes = UIDataDetectorTypeLink | UIDataDetectorTypePhoneNumber;

 

Leave a Reply

Your email address will not be published.