Share via


UIView.ExclusiveTouch 属性

定义

将事件传送限制为此视图。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ExclusiveTouch { [Foundation.Export("isExclusiveTouch")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setExclusiveTouch:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ExclusiveTouch : bool with get, set

属性值

默认值为 false。

属性

注解

设置此属性后,如果此视图开始跟踪触摸,则窗口中的任何其他视图都不会接收这些事件。 此外,将此属性设置为 true 的视图不会接收与窗口中其他视图关联的任何事件。

如果手指触摸了未设置此属性的视图,则仅当窗口中没有其他视图正在跟踪手指时,才会传递事件。 如果手指触摸非独占窗口,则仅当没有跟踪手指的独占视图时,才会传递事件。

适用于