【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 //
全部
};
*/
中 自动检测 手机,邮箱,网址
textView.dataDetectorTypes=UIDataDetectorTypeLink;
/*
typedef NS_OPTIONS(NSUInteger, UIDataDetectorTypes) {
UIDataDetectorTypePhoneNumber = 1 << 0, //
手机号数字
UIDataDetectorTypeLink = 1 << 1, //
网址邮箱连接-会跳转
UIDataDetectorTypeNone = 0, //
无
UIDataDetectorTypeAll = NSUIntegerMax //
全部
};
*/
相关文章推荐
- 【UIKit-54-1】UIInterface-系统的颜色与字体
- 关于自定义UITableViewCell报错问题
- 【UIKit-100-1】UIStepper
- 【UIKit-98-1】UISlider
- 【UUIKit-51-1】UIImageView-创建与属性
- 解决方案--duilib中edit获得鼠标焦点后右边框被覆盖
- 解决方案--duilib中edit获得鼠标焦点后右边框被覆盖
- CF 590B Chip 'n Dale Rescue Rangers(二分)
- Codeforces Round #327 (Div. 2) A. Wizards' Duel(水)
- UIButton 的 常用方法
- 【iOS】file not found: .../Build/Products/Debug-iphonesimulator file not found
- Multi-Threading: How to Create Threads in UE4
- An Introduction to UE4 Plugins
- ZOJ 2724 Windows Message Queue(二叉堆||优先队列)
- UE4 Plugins
- UIButton的一些属性和方法
- UIscrollView的属性及其协议方法
- PHP实现quicksort
- UItextfield的一些方法总结
- javax.persistence.TransactionRequiredException: Executing an update/delete query