iOS6中的AppleKeyboards [英] AppleKeyboards in iOS6

查看:151
本文介绍了iOS6中的AppleKeyboards的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I used AppleKeyboards to get users' keyboard setting before iOS6:

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

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

But after iOS6, I can't use AppleKeyboards as key for the user setting. Is there any solution for this? Thanks!

推荐答案

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

You can use UITextInputMode Class to get current text input mode by "+ (UITextInputMode *)currentInputMode".

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

这篇关于iOS6中的AppleKeyboards的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆