Text Storage

Manage text storage, and coordinate the layout of text.

Topics

Data

NSTextStorage

The fundamental storage mechanism of TextKit.

NSTextStorageDelegate

A set of optional methods implemented by delegates of NSTextStorage objects to handle text-edit processing.

NSTextContainer

A region where text is laid out.

NSAttributedString

A string that has associated attributes (such as visual style, hyperlinks, or accessibility data) for portions of its text.

Metrics

UITextPosition

A position in a text container—that is, an index into the backing string in a text-display view.

UITextRange

A range of characters in a text container, identified by a starting index and an ending index in string backing a text-entry object.

UITextSelectionRect

An encapsulation of information about a selected range of text in a document.

Paragraphs

NSParagraphStyle

The paragraph or ruler attributes used by an attributed string.

NSMutableParagraphStyle

An object that enables changing the values of the subattributes in a paragraph style attribute.

NSTextTab

A tab in an NSParagraphStyle object, storing an alignment type and location.

Attachments

NSTextAttachment

The values for the attachment attributes of attributed strings and related objects.

NSTextAttachmentContainer

A set of methods that defines the interface to text attachment objects from NSLayoutManager.

Text Manipulations

NSTextAlignmentToCTTextAlignment

Converts a UIKit text alignment constant value to the matching constant value used by Core Text.

NSTextAlignmentFromCTTextAlignment

Converts a Core Text alignment constant value to the matching constant value used by UIKit.

See Also

Text

Text Display and Fonts

Use UIKit views to display text, manage fonts, and check spelling.

Keyboards and Input

Configure the system keyboard, or create your own keyboards and handle input yourself.