UIKit.UIView.TranslatesAutoresizingMaskIntoConstraints Property
Specifies whether the autoresizing mask should be translated into constraints for Auto Layout.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[get: Foundation.Export("translatesAutoresizingMaskIntoConstraints")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[set: Foundation.Export("setTranslatesAutoresizingMaskIntoConstraints:")]
[set: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual bool TranslatesAutoresizingMaskIntoConstraints { get; set; }

Value

The default value is true.

Remarks

If this property is true, this UIKit.UIView's UIView.Superview will convert this UIKit.UIView's UIView.AutoresizingMask into UIKit.NSLayoutConstraints and include them in the UIView.Superview's UIView.Constraints.

If the application developer is using Auto Layout, setting this property to false will often provide a clearer starting point for programmatically specifying constraints.

In an over-constrained Auto Layout, the appearance of NSAutoresizingMaskLayoutConstraint in the Auto Layout debugging information is often an indication that the Application Developer has inappropriately left this property as true somewhere.

Requirements

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