UIView.AddInteraction(IUIInteraction) 方法

定义

将交互添加到视图。

[Foundation.Export("addInteraction:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddInteraction (UIKit.IUIInteraction interaction);
abstract member AddInteraction : UIKit.IUIInteraction -> unit
override this.AddInteraction : UIKit.IUIInteraction -> unit

参数

interaction
IUIInteraction

要添加的交互。

属性

适用于