Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c iOS6中的AppleKeyboards_Objective C_Ios6 - Fatal编程技术网

Objective c 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

在iOS6之前,我使用AppleKeyboards获取用户的键盘设置:

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”获取当前文本输入模式

另见: