摘要:
//判断当前输入法-(void)textViewDidChangeSelection:(UITextView *)textView{ NSLog(@"wewe:%@",[[UITextInputMode currentInputMode] primaryLanguage]);//do something en-US为英文。。zh-hans为中文 /* if ([[[UITextInputMode currentInputMode] primaryLanguage] isEqualToString: @"en-US"]) { NSLog(@"en 阅读全文
摘要:
//在遇到有输入的情况下。由于现在键盘的高度是动态变化的。中文输入与英文输入时高度不同。所以输入框的位置也要做出相应的变化#pragma mark - keyboardHight-(void)viewWillAppear:(BOOL)animated{ [self registerForKeyboardNotifications];}-(void)viewWillDisappear:(BOOL)animated{ [[NSNotificationCenter defaultCenter] removeObserver:self];}- (void)registerForKeyboa... 阅读全文