2016-07-24 19 views

Antwort

0
NSArray *keyboards = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] objectForKey:@"AppleKeyboards"]; // Array of all active keyboards 

NSLog(@"List of all keyboards : %@",keyboards); 
+0

nicht auf ios8 sim ... zu funktionieren scheint (nicht auf einem ios8 Gerät hat zu überprüfen), aber funktioniert auf > = 9 Sim/Gerät. –

0

können Sie fragen aktuellen Ersthelfer (UITextField, UISearchBar, etc.).

// annehmen, dass Sie Instanzvariable Zeige haben zur Zeit suchen Leiste eingeben

UITextInputMode *inputMode = [self.searchBar textInputMode]; 
NSString *lang = inputMode.primaryLanguage;