The current text-input mode.


class UITextInputMode : NSObject


You can use this object to determine the primary language currently being used for text input.


Getting the Current and Active Text-Input Modes

class var activeInputModes: [UITextInputMode]

Returns the active text-input modes.

Getting the Primary Language

var primaryLanguage: String?

The primary language, if any, of the input mode.



Inherits From

See Also


protocol 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.

protocol UITextInputDelegate

An intermediary between a document and the text input system.

protocol UITextInputTokenizer

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

protocol UIKeyInput

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

class UITextInputStringTokenizer

A base implementation of the UITextInputTokenizer protocol.

class UIDictationPhrase

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

class UIInputView

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