Getting the currently active keyboard language as NSLocale
问题 I already found a lot of approaches for this but no working solution. Here's what I tried and didn't work. (1) Simply calling primaryLanguage() UITextInputMode().primaryLanguage → always returns nil :-/ (2) Subscribing to UITextInputCurrentInputModeDidChangeNotification notifications override func viewDidLoad() { NSNotificationCenter.defaultCenter().addObserver(self, selector: "changeInputMode:", name: UITextInputCurrentInputModeDidChangeNotification, object: nil) } func changeInputMode