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?
Asked
Active
Viewed 241 times
0

Jonas Stawski
- 6,682
- 6
- 61
- 106
1 Answers
3
Try using this:
[UITextInputMode currentInputMode].primaryLanguage
If you use NSLog, you will see something like fr-FR, pt-BR etc...

scollaco
- 947
- 8
- 13
-
Thank you, that is what I was looking for, but that is deprecated on iOS 7. Do you know what it was replaced with? – Jonas Stawski Jan 08 '14 at 20:24
-
I looked for a new method on the Apple's documentation, but it doesn't give us any method anymore. – scollaco Jan 08 '14 at 20:35
-
Yeah, so did I. I guess I'll use this until it breaks or I find out a better way. Thanks – Jonas Stawski Jan 08 '14 at 20:58
-
Check [this question and answers](http://stackoverflow.com/questions/1414876/detecting-current-iphone-input-language) to iOS7+ solutions – zxcat Feb 20 '16 at 01:09