Objective c iOS6中的AppleKeyboards
在iOS6之前,我使用AppleKeyboards获取用户的键盘设置:Objective c iOS6中的AppleKeyboards,objective-c,ios6,Objective C,Ios6,在iOS6之前,我使用AppleKeyboards获取用户的键盘设置: NSArray * keyboards = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleKeyboards"]; for (int i = 0; i < [keyboards count]; i++) { NSLog(@"%@", [keyboards objectAtIndex:i]); } NSArray*键盘=[[NSUserDefa
NSArray * keyboards = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleKeyboards"];
for (int i = 0; i < [keyboards count]; i++)
{
NSLog(@"%@", [keyboards objectAtIndex:i]);
}
NSArray*键盘=[[NSUserDefaults standardUserDefaults]objectForKey:@“AppleKeyboards”];
对于(int i=0;i<[键盘计数];i++)
{
NSLog(@“%@,[keyboards objectAtIndex:i]);
}
但是在iOS6之后,我不能使用AppleKeyboards作为用户设置的键。
有什么解决办法吗?谢谢 您可以使用UITestInputMode类通过“+(UITestInputMode*)currentInputMode”获取当前文本输入模式 另见: