Protocol

NSUserInterfaceCompression

A protocol that describes how a UI control should redisplay when space is restricted.

Declaration

@protocol NSUserInterfaceCompression

Overview

A control that adopts this protocol has the ability to resize itself when space is at a premium.

Topics

Compressing the UI

compressWithPrioritizedCompressionOptions:

Compress the view by applying the specified compression options.

Required.

Querying Compression Status

minimumSizeWithPrioritizedCompressionOptions:

Returns the minimum size a view can achieve by applying the supplied compression options.

Required.

activeCompressionOptions

The compression options that are currently applied to the view.

Required.

Relationships

Conforming Types

See Also

View Layout

NSLayoutConstraint

The relationship between two user interface objects that must be satisfied by the constraint-based layout system.

NSLayoutGuide

A rectangular area that can interact with Auto Layout.

NSLayoutDimension

A factory class for creating size-based layout constraint objects using a fluent API.

NSLayoutAnchor

A factory class for creating layout constraint objects using a fluent API.

NSLayoutXAxisAnchor

A factory class for creating horizontal layout constraint objects using a fluent API.

NSLayoutYAxisAnchor

A factory class for creating vertical layout constraint objects using a fluent API.

NSDictionaryOfVariableBindings

Creates a dictionary wherein the keys are string representations of the corresponding values’ variable names.