您的位置:首页 > 产品设计 > UI/UE

【UIKit-32-1】UIDataDetectors 文本号码邮箱链接自动识别

2015-10-27 20:53 417 查看
一般是 UITextView
中 自动检测 手机,邮箱,网址

textView.dataDetectorTypes=UIDataDetectorTypeLink;

/*

typedef NS_OPTIONS(NSUInteger, UIDataDetectorTypes) {

UIDataDetectorTypePhoneNumber = 1 << 0, //
手机号数字

UIDataDetectorTypeLink = 1 << 1, //
网址邮箱连接-会跳转

UIDataDetectorTypeNone = 0, //


UIDataDetectorTypeAll = NSUIntegerMax //
全部

};

*/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: