The following should work: You will need to use the UIKeyboard notification in your code
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillBeHidden:)
name:UIKeyboardWillHideNotification object:nil];
Then, in your method keyboardWillBeHidden:or similarly, use the answer (link below) that returns you the two-letter code for the currently selected language.
Link: Getting the current device language in iOS?
, keyboardWillBeHidden: , , .
, , .