I have been using Keyboard notifications without any problem and getting exact height of Keyboard.
- (void)keyboardDidShow:(NSNotification *) notification{
CGSize keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
NSLog(@"%f",keyboardSize.height);}
but with iOS 11 the size of keyboard is 0 when the notification is called.
What is the problem occurring in this scenario? I am using xcode 9 Beta 5
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…