Instance Property

canResizeToFitContent

A Boolean value that indicates whether the window's constraint-based content determines its size.

Declaration

@property(nonatomic, setter=setCanResizeToFitContent:) BOOL canResizeToFitContent;

Discussion

The default value of this property is NO, which causes the window to maintain a fixed size. Setting this property to YES allows the system to perform constraints-based window sizing, which updates the window's size to match the space needed by its content. Window-size changes occur only when the app runs on macOS.

See Also

Configuring the Window

rootViewController

The root view controller for the window.

windowLevel

The position of the window in the z-axis.

UIWindowLevel

The positioning of windows relative to each other.

setScreen:

The screen on which the window is displayed.

Deprecated