iOS检测键盘输入语言类型
来源:互联网 发布:mac管理员用户名修改 编辑:程序博客网 时间:2024/06/11 13:13
- (void)viewDidLoad{ [super viewDidLoad]; NSNotificationCenter *nCenter = [NSNotificationCenter defaultCenter]; [nCenter addObserver:self selector:@selector(languageChanged:) name:UITextInputCurrentInputModeDidChangeNotification object:nil];// [self languageChanged:nil];}- (void)languageChanged:(NSNotification*)notification{ NSLog(@"Current: %@", [UIApplication sharedApplication].delegate.window.textInputMode.primaryLanguage);// for(UITextInputMode *mode in [UITextInputMode activeInputModes])// {// NSLog(@"Input mode: %@", mode);// NSLog(@"Input language: %@", mode.primaryLanguage);// }// NSLog(@"Notification: %@", notification);// UITextInputMode *current = [UITextInputMode currentInputMode];// NSLog(@"Current: %@", current.primaryLanguage);}- (void)dealloc{ [[NSNotificationCenter defaultCenter] removeObserver:self];}
0 0
- iOS检测键盘输入语言类型
- iOS检测设备类型
- C语言 - 判断键盘输入的类型 并且计数
- C语言编程,键盘输入一个字符,输出其类型
- 检测当前iOS设备类型方法
- 检测当前iOS设备类型方法
- C语言键盘输入函数
- c语言响应键盘输入
- R语言 键盘输入
- 漫步IOS--MAC键盘输入
- 实时检测键盘输入(在窗体级别处理键盘输入)
- as3——检测系统语言,检测播放器的类型,检测版本
- c语言键盘输入+中文字处理
- C语言从键盘输入数据
- linux c语言 模拟键盘输入
- 检测类型
- 类型检测
- 检测类型
- C#基础学习笔记--数据类型,值类型,结构类型,枚举类型
- [UnityShader3]圆角与流光效果
- linux②
- 如何提高网站的访问速度?
- 说说本人学习DirectX之路
- iOS检测键盘输入语言类型
- 相似度算法
- 开发文档规范
- gets()函数
- 搭建ADT开发环境
- 第04章:面向对象(基础)
- Android学习记录(二十六)-Android toolbar使用遇到的坑。
- [编程题] 困兽之斗
- 添物零基础到架构师(基础篇) - JavaScript