UIDataDetectorTypeNone
。
The types of data converted to clickable URLs in the text view.
Declaration
SWIFT
var dataDetectorTypes: UIDataDetectorTypes
OBJECTIVE-C
@property(nonatomic) UIDataDetectorTypes dataDetectorTypes
Discussion
You can use this property to specify the types of data (phone numbers, http
links, and so on) that should be automatically converted to clickable URLs in the text view. When clicked, the text view opens the application responsible for handling the URL type and passes it the URL.
Import Statement
import UIKit
Availability
Defines the types of information that can be detected in text-based content.
Declaration
OBJECTIVE-C
enum{
UIDataDetectorTypePhoneNumber = 1 << 0,
UIDataDetectorTypeLink= 1 << 1,
UIDataDetectorTypeAddress= 1 << 2,
UIDataDetectorTypeCalendarEvent= 1 << 3,
UIDataDetectorTypeNone= 0,
UIDataDetectorTypeAll= NSUIntegerMax }; typedef NSUInteger UIDataDetectorTypes;
-
UIDataDetectorTypePhoneNumber //侦探电话号码
Detect strings formatted as phone numbers.
Available in iOS 3.0 and later. -
UIDataDetectorTypeLink //侦探可能是url的字符串
Detect strings formatted as URLs.
Available in iOS 3.0 and later.
-
UIDataDetectorTypeAddress //侦探地址信息
Detect strings formatted as addresses.
Available in iOS 4.0 and later. -
UIDataDetectorTypeCalendarEvent //侦探日历时间
Detect strings formatted as calendar events.
Available in iOS 4.0 and later. -
UIDataDetectorTypeNone //不侦探任何信息
Do no data detection.
Available in iOS 3.0 and later.
-
UIDataDetectorTypeAll //侦探全部
Detect all available types of data.
Available in iOS 3.0 and later.
Import Statement
Availability
Available in iOS 3.0 and later.