iOS6中的AppleKeyboards

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

NSArray * keyboards = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleKeyboards"];
for (int i = 0; i < [keyboards count]; i++)
{
  NSLog(@"%@", [keyboards objectAtIndex:i]);
}

但是在iOS6之后,我无法使用AppleKeyboard作为用户设置的关键。 有没有解决方案? 谢谢!


您可以使用UITextInputMode Class通过“+(UITextInputMode *)currentInputMode”获取当前的文本输入模式。

另请参阅:https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITextInputMode_Class/Reference/Reference.html

链接地址: http://www.djcxy.com/p/66323.html

上一篇: AppleKeyboards in iOS6

下一篇: TWTweetComposeViewController deprecated in IOS6