Inherits from UITextPosition
Conforms to NSCopying
Declared in DTTextPosition.h

Overview

Class to represent a text position in DTRichTextEditorView

Tasks

Creating Text Positions

Comparing Text Positions

Getting Information about Text Positions

Properties

location

The string index location

@property (nonatomic, readonly) NSUInteger location

Declared In

DTTextPosition.h

Class Methods

textPositionWithLocation:

Convenience method for created a text position from a string location.

+ (DTTextPosition *)textPositionWithLocation:(NSUInteger)location

Parameters

location

The string location

Return Value

An initialized text position

Declared In

DTTextPosition.h

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