iOS 8中苹果系统键盘的高度是多少?没有键盘顶部的预测文本框?
发布于 2015-11-04 07:07:27
使用
NSValue* keyboardFrame = [keyboardInfo valueForKey:UIKeyboardFrameEndUserInfoKey];关于细节值
将UIKeyboardWillChangeFrameNotification的观察者添加到viewDidLoad中;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillChange:) name:UIKeyboardWillChangeFrameNotification object:nil];委托方法
- (void)keyboardWillChange:(NSNotification *)notification {
NSDictionary* keyboardInfo = [notification userInfo];
NSValue* keyboardFrame = [keyboardInfo valueForKey:UIKeyboardFrameEndUserInfoKey];
NSLog("value ==%@",keyboardFrame);
}https://stackoverflow.com/questions/33515655
复制相似问题