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