Inherits from NSObject
Conforms to DTTextSelectionRect
Declared in DTTextSelectionRect.h

Overview

The concrete class to represent a text selection rectangle. The receiver conforms to the DTTextSelectionRect protocol.

As of iOS6 there is an abstract UITextSelectionRect that will be used if the deployment target is iOS 6 or higher. In these cases text selection will be represented by DTTextSelectionRectDerived instances otherwise DTTextSelectionRect will be used.

Class Methods

textSelectionRectWithRect:

Convenience method for creating a selection rect from a frame rect.

+ (id<DTTextSelectionRect>)textSelectionRectWithRect:(CGRect)rect

Parameters

rect

The frame rectangle

Return Value

An initialized selection rectangle.

Declared In

DTTextSelectionRect.h