2016-07-24 3 views

答えて

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

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

を入力すると(ios8デバイス上でチェックしていなかった)ios8シム...上で動作するようには思えませんが、上の動作しませんあなたがバーを検索するために、インスタンス変数ポインティングを持っていると仮定します> = 9 sim/device。 –

0

現在のファーストレスポンダ(UITextField、UISearchBarなど)に問い合わせることができます。

//現在

UITextInputMode *inputMode = [self.searchBar textInputMode]; 
NSString *lang = inputMode.primaryLanguage; 
関連する問題