What is the height of iPhone’s onscreen keyboard?
I used the following approach for determining the frame of the keyboard in iOS 7.1. In the init method of my view controller, I registered for the UIKeyboardDidShowNotification: NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; [center addObserver:self selector:@selector(keyboardOnScreen:) name:UIKeyboardDidShowNotification object:nil]; Then, I used the following code in keyboardOnScreen: to gain access to the frame of the keyboard. … Read more