AppleKeyboards in iOS6

淺唱寂寞╮ 提交于 2019-12-12 03:56:29

问题


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]);
}

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


回答1:


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

see also: https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITextInputMode_Class/Reference/Reference.html



来源:https://stackoverflow.com/questions/12816325/applekeyboards-in-ios6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!