UIKit.UIView.UpdateConstraints Method
Updates the Auto Layout constraints for the UIKit.UIView.

Syntax

[Foundation.Export("updateConstraints")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual void UpdateConstraints ()

See Also

UIView.UpdateConstraintsIfNeeded

Remarks

Application developers may override this method in order to create and update custom constraints for use with Auto Layout.

The Auto Layout system calls this method prior to layout. The UIKit.UIView's properties will be in a stable state when this method is called and application developers should be able to establish valid constraints.

Application developers may add or remove constraints in this method. If they do so, they must call UIView.SetNeedsUpdateConstraints to notify the Auto Layout system that further updating is required.

Application developers must not invalidate existing UIKit.NSLayoutConstraints during this method. Applications developers must not perform drawing actions or invoke layout recalculation during this method.

Application developers must call base.UpdateConstraints() in their implementations of this method.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0