UITextInputMode Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/UIKit.framework |
| Availability | Available in iOS 4.2 and later. |
| Declared in | UITextInput.h |
Overview
An instance of the UITextInputMode class represents the current text-input mode. You can use this object to determine the primary language currently being used for text input.
Tasks
Getting the Current and Active Text-Input Modes
Getting the Primary Language
-
primaryLanguageproperty
Properties
primaryLanguage
The primary language, if any, of the input mode.
Discussion
The value of this property is a BCP 47 language code such as “es”, “en-US”, or “fr-CA”.
Availability
- Available in iOS 4.2 and later.
Declared In
UITextInput.hClass Methods
activeInputModes
Returns the active text-input modes.
Discussion
Each element in the array is an instance of UITextInputMode. Returns an empty array if no such instances have been set by the text input system.
Availability
- Available in iOS 5.0 and later.
See Also
Declared In
UITextInput.hcurrentInputMode
Returns an instance representing the current text-input mode.
Return Value
An object representing the current input mode or nil if this object is not set by the text input system.
Availability
- Available in iOS 4.2 and later.
See Also
Declared In
UITextInput.hNotifications
UITextInputCurrentInputModeDidChangeNotification
The posting object is a UITextInputMode instance.
Availability
- Available in iOS 4.2 and later.
Declared In
UITextInput.h© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-06-06)