How do I retrieve the language of the current keyboard? [duplicate]
-
20-12-2019 - |
Question
I was able to retrieve the list of installed keyboards through NSUserDefaults
and AppleKeyboards
, but I wasn't able to find out which one is the current user selected. Anyway to do so programmatically?
Solution
Try using this:
[UITextInputMode currentInputMode].primaryLanguage
If you use NSLog, you will see something like fr-FR, pt-BR etc...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow