Instance Property

selectedRange

The current selection range of the receiver.

Declaration

@property(nonatomic) NSRange selectedRange;

Discussion

In iOS 2.2 and earlier, the length of the selection range is always 0, indicating that the selection is actually an insertion point. In iOS 3.0 and later, the length of the selection range may be non-zero.

See Also

Working with the Selection

- scrollRangeToVisible:

Scrolls the receiver until the text in the specified range is visible.

clearsOnInsertion

A Boolean value indicating whether inserting text replaces the previous contents.

selectable

A Boolean value indicating whether the receiver is selectable.