1

Possible Duplicate:
Is it possible to detect the current keyboard input method on the iPhone?
Get writing language of “uitextview” iphone?

How to get the current editing language of a UITextView object? I mean the CURRENT language of a UITextView keyboard

I don't have other words to say but the question editor requires some more text here lol

Community
  • 1
  • 1
Ahmed Said
  • 1,285
  • 5
  • 16
  • 28

1 Answers1

1

Do you mean the language used by the device that's accessing the textview? Couldn't you just get the language of the system? You could use:

NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];

(Not my code, found it here: Getting current device language in iOS? )

Edit: actually this is what you're after UITextInputMode you can read the docs here: http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputMode_Class/Reference/Reference.html

Community
  • 1
  • 1
Madivad
  • 2,999
  • 7
  • 33
  • 60