UIKit.UIView.SetContentCompressionResistancePriority Method
Sets the resistance to compression below the UIKit.UIView's UIView.IntrinsicContentSize.

Syntax

[Foundation.Export("setContentCompressionResistancePriority:forAxis:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual void SetContentCompressionResistancePriority (float priority, UILayoutConstraintAxis axis)

See Also

UIView.ContentCompressionResistancePriority
UIView.SetContentHuggingPriority

Parameters

priority
The new priority. Preferable if a member of UIKit.UILayoutPriority.
axis
The axis for which the resistance is being set.

Remarks

This method sets the resistance of a UIKit.UIView to compression to a size smaller than its UIView.IntrinsicContentSize. Application developers should set this property for both UILayoutConstraintAxis.Horizontal and UILayoutConstraintAxis.Vertical.

Requirements

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