Instance Property

selectedRange

The current selection range of the receiver.

Declaration

var selectedRange: NSRange { get set }

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

func scrollRangeToVisible(NSRange)

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

var clearsOnInsertion: Bool

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

var isSelectable: Bool

A Boolean value indicating whether the receiver is selectable.