AppleKeyboards在iOS6的
问题描述:
我用AppleKeyboards iOS6的之前得到用户的键盘设置:AppleKeyboards在iOS6的
NSArray * keyboards = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleKeyboards"];
for (int i = 0; i < [keyboards count]; i++)
{
NSLog(@"%@", [keyboards objectAtIndex:i]);
}
但iOS6的后,我无法用AppleKeyboards为用户设置键。 有没有解决方法?谢谢!
答
您可以使用UITextInputMode Class通过“+(UITextInputMode *)currentInputMode”获取当前文本输入模式。