Share via


UIView.AddLayoutGuide(UILayoutGuide) 方法

定义

添加指定的 guide,允许自动版式控件而无需创建虚拟视图。

[Foundation.Export("addLayoutGuide:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void AddLayoutGuide (UIKit.UILayoutGuide guide);
abstract member AddLayoutGuide : UIKit.UILayoutGuide -> unit
override this.AddLayoutGuide : UIKit.UILayoutGuide -> unit

参数

guide
UILayoutGuide

要添加的 UILayoutGuide

属性

适用于