Enumeration

NSLayoutFormatOptions

A bit mask that specifies both a part of an interface element to align and a direction for the alignment between two interface elements.

Topics

Constants

NSLayoutFormatAlignAllLeft

Align all specified interface elements using NSLayoutAttributeLeft on each.

NSLayoutFormatAlignAllRight

Align all specified interface elements using NSLayoutAttributeRight on each.

NSLayoutFormatAlignAllTop

Align all specified interface elements using NSLayoutAttributeTop on each.

NSLayoutFormatAlignAllBottom

Align all specified interface elements using NSLayoutAttributeBottom on each.

NSLayoutFormatAlignAllLeading

Align all specified interface elements using NSLayoutAttributeLeading on each.

NSLayoutFormatAlignAllTrailing

Align all specified interface elements using NSLayoutAttributeTrailing on each.

NSLayoutFormatAlignAllCenterX

Align all specified interface elements using NSLayoutAttributeCenterX on each.

NSLayoutFormatAlignAllCenterY

Align all specified interface elements using NSLayoutAttributeCenterY on each.

NSLayoutFormatAlignAllBaseline

Align all specified interface elements using NSLayoutAttributeBaseline on each.

NSLayoutFormatAlignAllLastBaseline

Align all specified interface elements using the last baseline of each one.

NSLayoutFormatAlignAllFirstBaseline

Align all specified interface elements using the first baseline of each one.

NSLayoutFormatAlignmentMask

Bit mask that can be combined with a NSLayoutFormatOptions variable to yield only the alignment portion of the format options.

NSLayoutFormatDirectionLeadingToTrailing

Arrange objects in order based on the normal text flow for the current user interface language. In left-to-right languages (like English), this arrangement results in the first object being placed farthest to the left, the next one to its right, and so on. In right-to-left languages (like Arabic or Hebrew), the ordering is reversed.

NSLayoutFormatDirectionLeftToRight

Arrange objects in order from left to right.

NSLayoutFormatDirectionRightToLeft

Arrange objects in order from right to left.

NSLayoutFormatDirectionMask

A bit mask that can be combined with an NSLayoutFormatOptions variable to yield only the direction portion of the format options.

NSLayoutFormatSpacingEdgeToEdge

Align the elements using their edges instead of using their baselines.

NSLayoutFormatSpacingBaselineToBaseline

Align elements vertically according to their baseline positions.

NSLayoutFormatSpacingMask

A bit mask that can be combined with an NSLayoutFormatOptions variable to yield only the spacing baseline spacing portion of the format options.