I made a custom keyboard view and linked it to the inputView property of a UITextField. Is there a way to change the height of a custom inputView when orientation changes and have the frame change animated smoothly just like the system keyboard? My keyboard size is 768x272 and when the device goes landscape the size becomes 1024x272, but I want to make it bigger like 1024x372. If I change the frame with the code below when I get UIDeviceOrientationDidChangeNotification, the change animation is not smooth.
textField.inputView.frame = CGRectMake(0,0,1024,372);