DTTextPosition Class Reference
Inherits from | UITextPosition |
Conforms to | NSCopying |
Declared in | DTTextPosition.h |
Tasks
Creating Text Positions
Comparing Text Positions
Getting Information about Text Positions
-
location
property
Instance Methods
compare:
Compares the receiver to another text position
- (NSComparisonResult)compare:(UITextPosition *)otherPosition
Parameters
- otherPosition
The other text position to compare with
Return Value
An NSComparisonResult
Declared In
DTTextPosition.h
isEqual:
Compares the receiver to another text position
- (BOOL)isEqual:(UITextPosition *)otherPosition
Parameters
- otherPosition
The other text position to compare with
Return Value
YES
if both are equivalent
Declared In
DTTextPosition.h
textPositionWithOffset:
Creates a new text position that is offset from the receiver’s location.
- (DTTextPosition *)textPositionWithOffset:(NSInteger)offset
Parameters
- offset
The offset to apply to the receiver’s location
Return Value
An initialized text position with the given offset
Declared In
DTTextPosition.h