I use keyboard notifications without any problems and get the exact height of the keyboard.
- (void)keyboardDidShow:(NSNotification *) notification{ CGSize keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; NSLog(@"%f",keyboardSize.height);}
but with iOS 11, the keyboard size is 0 when the notification is called.
What is the problem arising in this scenario? I am using xcode 9 beta 5
ios objective-c nsnotificationcenter
Hassy Aug 15 '17 at 8:59 2017-08-15 08:59
source share