Instance Method

sizeToFit

Resizes the receiver to fit its text.

Declaration

- (void)sizeToFit;

Discussion

The text view will not be sized any smaller than its minimum size, however.

See Also

Constraining size

maxSize

The receiver’s maximum size.

minSize

The receiver’s minimum size.

verticallyResizable

A Boolean that controls whether the receiver changes its height to fit the height of its text.

horizontallyResizable

A Boolean that controls whether the receiver changes its width to fit the width of its text.