UITextView.DataDetectorTypes 属性

定义

此属性包含一个值,该值确定文档中哪些文本可以转换为可单击链接。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIDataDetectorType DataDetectorTypes { [Foundation.Export("dataDetectorTypes")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setDataDetectorTypes:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.DataDetectorTypes : UIKit.UIDataDetectorType with get, set

属性值

默认值为 E:UIKit.UIDataDetectorTypes.None

属性

注解

将此值设置为 E:UIKit.UIDataDetectorTypes.None 会将相应的文本 (电话号码、URL、日历事件和地址) 转换为可单击链接。 单击时,操作系统将打开相应的应用程序来处理该类型的链接。

适用于

另请参阅