UIView.HasAmbiguousLayout Property


Returns true if the Auto Layout for this UIView is ambiguous.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: Foundation.Export("hasAmbiguousLayout")]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool HasAmbiguousLayout { get; }
member this.HasAmbiguousLayout : bool

Property Value


Returns false if the UIView's constraints are sufficient to accurately specify its alignment rectangle.



This is a debugging method that should not be used in production applications.

This method can be used to determine if the set of NSLayoutConstraints for a UIView are sufficient to fully determine the alignment rectangle or if they are ambiguous.

Applies to