问题
I used AppleKeyboards to get users' keyboard setting before iOS6:
NSArray * keyboards = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleKeyboards"];
for (int i = 0; i < [keyboards count]; i++)
{
NSLog(@"%@", [keyboards objectAtIndex:i]);
}
But after iOS6, I can't use AppleKeyboards as key for the user setting. Is there any solution for this? Thanks!
回答1:
You can use UITextInputMode Class to get current text input mode by "+ (UITextInputMode *)currentInputMode".
see also: https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITextInputMode_Class/Reference/Reference.html
来源:https://stackoverflow.com/questions/12816325/applekeyboards-in-ios6