DTTextSelectionView Class Reference
| Inherits from | UIView |
| Declared in | DTTextSelectionView.h |
Tasks
Creating a Selection View
Accessing Subviews
-
textViewproperty -
dragHandleLeftproperty -
dragHandleRightproperty
Customizing the Look
-
styleproperty -
cursorColorproperty
Working with Selection Rectangles
Working with Drag Handles
Getting Information
Layout
Properties
cursorColor
The caret color to use next to the ranged selection drag handles
@property (nonatomic, retain) UIColor *cursorColorDeclared In
DTTextSelectionView.hdragHandleLeft
The image view that represents the left drag handle.
@property (nonatomic, retain) UIImageView *dragHandleLeftDeclared In
DTTextSelectionView.hdragHandleRight
The image view that represents the right drag handle.
@property (nonatomic, retain) UIImageView *dragHandleRightDeclared In
DTTextSelectionView.hdragHandlesVisible
Specifies whether the drag handles are visible
@property (nonatomic, assign) BOOL dragHandlesVisibleDeclared In
DTTextSelectionView.hselectionRectangles
The selection rectangles to display in the receiver
@property (nonatomic, retain) NSArray *selectionRectanglesDeclared In
DTTextSelectionView.hInstance Methods
beginCaretRect
The frame rectangle of the beginning caret of a selected range
- (CGRect)beginCaretRectDeclared In
DTTextSelectionView.hendCaretRect
The frame rectangle of the ending caret of a selected range
- (CGRect)endCaretRectDeclared In
DTTextSelectionView.hinitWithTextView:
Designated Initializer. Creates a selection view for a given text view
- (id)initWithTextView:(UIView *)viewParameters
- view
The text view that this selection view shows selections for
Return Value
An initialized selection view
Declared In
DTTextSelectionView.hlayoutSubviewsInRect:
Lays out the subviews of the receiver with a provided visible rectangle
- (void)layoutSubviewsInRect:(CGRect)rectParameters
- rect
The rectangle in which to lay out the subviews
Declared In
DTTextSelectionView.hselectionEnvelope
A frame rectangle the envelops the entire selection
- (CGRect)selectionEnvelopeDeclared In
DTTextSelectionView.hsetDragHandlesVisible:animated:
Customized setter to optionally show/hide the drag handles with a fading animation
- (void)setDragHandlesVisible:(BOOL)dragHandlesVisible animated:(BOOL)animatedParameters
- dragHandlesVisible
YESto make the drag handles visible,NOto hide them
- animated
Whether the change of visibility of the drag handles should be animated
Declared In
DTTextSelectionView.hsetSelectionRectangles:animated:
Customized setter for selectionRectangles that optionally animates the selection change
- (void)setSelectionRectangles:(NSArray *)selectionRectangles animated:(BOOL)animatedParameters
- selectionRectangles
The selection rectangles to set
- animated
Whether the change of selection rectangles should be animated
Declared In
DTTextSelectionView.h