I've written a custom input view that is meant to be used to replace the standard keyboard for a UITextView
. If I assign my custom UIView
as my UITextView
's inputView
, it works as expected in both portrait and landscape mode.
The problem occurs when I rotate the device - whenever I do this, my custom UIView
expands to fill the entire screen, instead of just covering up the keyboard. I don't have any custom resizing code anywhere for this - I'm literally just assigning the UIView as the UITextView's inputView property and then rotating the device.
How do I get my custom keyboard view to only occupy the space taken up by the normal keyboard when I rotate the device?