Instance Property


The maximum number of lines that can be stored in the text container.


iOS, Mac Catalyst, tvOS
@property(nonatomic) NSUInteger maximumNumberOfLines;
@property NSUInteger maximumNumberOfLines;


The layout manager uses the value of this property to determine the maximum number of lines associated with the text container. The default value of this property is 0, which indicates that there is no limit.

See Also

Constraining Text Layout


The amount by which text is inset within line fragment rectangles.

- lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:

Returns the bounds of a line fragment rectangle inside the receiver for the proposed rectangle.


A Boolean that indicates whether the receiver’s region is a rectangle with no holes or gaps and whose edges are parallel to the text view's coordinate system axes.