I want to know the current input method the user is typing in such as En (english), German, Chinese, etc... Maybe keyboard type is what I am after, but documentation seems limited on this subject from Apple doc.
Thank you!
Managing the iPhone Keyboard http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html
In iOS4.2 there is a new class UITextInputMode that is exactly what you want. (Oops, this is still under NDA. If you have no iOS dev center account please don't read this answer ;) )
You can query current mode (English, French, Japanese, etc) or get notifications when it changes (the keyboard language changes)
UITextInputMode documentation (requires log in)
currentInputMode
is deprecated since iOS7, be careful.
currentInputMode
Returns an instance representing the current text-input mode. (Deprecated in iOS 7.0.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With