views:

58

answers:

2

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

+1  A: 

here is a tutorial

http://www.switchonthecode.com/tutorials/a-simple-localization-example-for-the-iphone

NSLocale* curentLocale = [NSLocale currentLocale];
Aaron Saunders
In any local, you can have more than one input methods. This is quite common in asian languages such as chinese input method: traditional, simplifed, pinyin, german, etc.
Unikorn
+3  A: 

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)

nacho4d
+1 Thanks! That is what I am looking for, but thats unfortunate it took 4 iteration to come out with that and kinda useless to me if is limited to 4.2
Unikorn