textView.dataDetectorTypes = UIDataDetectorTypeLink;
延伸:
Abstract: Defines the types of information that can be detected in text-based content.
Abstract: Defines the types of information that can be detected in text-based content.
Declaration: enum {
UIDataDetectorTypePhoneNumber = 1 << 0,
UIDataDetectorTypeLink = 1 << 1,
UIDataDetectorTypeAddress = 1 << 2,
UIDataDetectorTypeCalendarEvent = 1 << 3,
UIDataDetectorTypeNone = 0,
UIDataDetectorTypeAll = NSUIntegerMax
};
typedef NSUInteger UIDataDetectorTypes;
Availability: iOS 3.0 and later
本文介绍如何在iOS应用中使用UIDataDetectorTypes枚举来定义textView中可以检测到的信息类型,包括电话号码、链接、地址及日历事件等。
4325

被折叠的 条评论
为什么被折叠?



