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
-
locationproperty
Instance Methods
compare:
Compares the receiver to another text position
- (NSComparisonResult)compare:(UITextPosition *)otherPositionParameters
- otherPosition
The other text position to compare with
Return Value
An NSComparisonResult
Declared In
DTTextPosition.hisEqual:
Compares the receiver to another text position
- (BOOL)isEqual:(UITextPosition *)otherPositionParameters
- otherPosition
The other text position to compare with
Return Value
YES if both are equivalent
Declared In
DTTextPosition.htextPositionWithOffset:
Creates a new text position that is offset from the receiver’s location.
- (DTTextPosition *)textPositionWithOffset:(NSInteger)offsetParameters
- offset
The offset to apply to the receiver’s location
Return Value
An initialized text position with the given offset
Declared In
DTTextPosition.h