An instance of a class that adopts the
UIText protocol is a tokenizer; a tokenizer allows the text input system to evaluate text units of different granularities. Granularities of text units are always evaluated with reference to a storage or reference direction.
- iOS 3.2+
- tvOS 9.0+
Text-processing objects that conform to the UITextInput protocol must hold a reference to a tokenizer (via the tokenizer property). The UITextInputStringTokenizer class of the UIKit framework provides a default base implementation of the
UIText protocol. Tokenizers of this class are suitable for most western-language keyboards. Applications with different requirements may adopt the
UIText protocol and create their own tokenizers.