Modifier

Partager via


UIViewAutoresizing Enum

Definition

An enumeration indicating the resizing style for UIViews.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIViewAutoresizing
type UIViewAutoresizing = 
Inheritance
UIViewAutoresizing
Attributes

Fields

Name Value Description
None 0

Indicates that the view does not resize.

FlexibleLeftMargin 1

Resizing is performed by expanding or shrinking the UIView in the direction of the left margin.

FlexibleWidth 2

Resizing is performed by expanding or shrinking the UIView's width.

FlexibleRightMargin 4

Resizing is performed by expanding or shrinking the UIView in the direction of the right margin.

FlexibleTopMargin 8

Resizing is performed by expanding or shrinking the UIView in the direction of the top margin.

FlexibleHeight 16

Resizing is performed by expanding or shrinking the UIView's height.

FlexibleDimensions 18

Combines FlexibleHeight and FlexibleWidth.

FlexibleBottomMargin 32

Resizing is performed by expanding or shrinking the UIView in the direction of the bottom margin.

FlexibleMargins 45

Combination of all flexible margin values.

All 63

The UIView resizes on all sides.

Applies to