【问题标题】:AppleKeyboards in iOS6iOS 6 中的 Apple 键盘
【发布时间】:2012-10-10 09:41:34
【问题描述】:

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

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

但在 iOS6 之后,我不能使用 AppleKeyboards 作为用户设置的键。 有什么解决方案吗?谢谢!

【问题讨论】:

    标签: objective-c ios6


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-09
      • 1970-01-01
      • 2014-09-29
      • 2013-02-14
      • 1970-01-01
      • 2012-09-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多