Class

UITextInputStringTokenizer

A base implementation of the UITextInputTokenizer protocol.

Declaration

@interface UITextInputStringTokenizer : NSObject

Overview

If you want to take advantage of this base implementation, you should subclass this class and handle application-specific directions and granularities affected by layout. When you instantiate a class you must supply the document class that is adopting the UITextInput protocol for your application.

Subclassing Notes

When you subclass UITextInputStringTokenizer, override all UITextInputTokenizer methods, calling the superclass implementation (super) when method parameters are not affected by layout. For example, the subclass needs a custom implementation of all methods for line granularity. For the left direction, it needs to decide whether left corresponds at a given position to forward or backward, and then call super passing in the storage direction (UITextStorageDirection).

Topics

Initializing a Tokenizer

- initWithTextInput:

Returns an object initialized with the document object that directly communicates with the text input system.

Relationships

Inherits From

See Also

Input

UITextInput

A set of methods you implement to interact with the text input system and enable features such as autocorrection and multistage text input in documents.

UITextInputDelegate

An intermediary between a document and the text input system.

UITextInputTokenizer

A tokenizer, which is an object that allows the text input system to evaluate text units of different granularities.

UIKeyInput

A set of methods a subclass of UIResponder uses to implement simple text entry.

UITextInputMode

The current text-input mode.

UIDictationPhrase

An object that represents the textual interpretation of a spoken phrase as dictated by a user.

UIInputView

An object that displays and manages custom input for a view when that view becomes the first responder.