I have an UIView named _containerView and inside this UIView I have a custom UITextView named _codeTextView. When the app is loaded, these views occupies the whole screen, however, when the keyboard appears, I would like the screens to resize.
I have to following method when the keyboard appears:
- (void)keyboardAppears:(NSNotification *)notification
{
_containerView.frame = CGRectMake(0, 0, 320, 216.0f);
_codeTextView.frame = CGRectMake(0, 30, 290, 216.0f);
}
The containerView gets resized properly however, the _codeTextView in it does not resize and I really have no clue why it's not resizing. I've already tried changing various options and it's driving me crazy :(
Could anyone help me?
Thanks in advance!