Instance Property

layoutManager

The receiver’s layout manager.

Declaration

iOS, Mac Catalyst, tvOS
@property(assign, nonatomic) NSLayoutManager *layoutManager;
macOS
@property(assign) NSLayoutManager *layoutManager;

Discussion

Avoid assigning a layout manager directly through this property. Instead, use the replaceLayoutManager: method when you want to replace the layout manager. The value of this property is set automatically when you add a text container to your layout manager using the addTextContainer: method.

See Also

Managing Text Components

- replaceLayoutManager:

Replaces the layout manager for the group of text system objects containing the receiver.

textView

The receiver’s text view.