How to get a keyboard size to resize UITextView
and how to use UIKeyboardFrameEndUserInfoKey
with Japanese keyboard? The following code to resize <
The correct fragment of the code:
CGRect newFrame = editSource.frame;
CGRect keyboardFrame = [self.view convertRect:keyboardEndFrame toView:nil];
keyboardFrame.size.height -= tabBarController.tabBar.frame.size.height;
if (up) {
editHeight = newFrame.size.height;
newFrame.size.height -= keyboardFrame.size.height;
} else {
newFrame.size.height = editHeight;
}
editSource.frame = newFrame;
The method is obsolete. The correct answer is located here: How can I add support for Chinese keyboard with UITextView on iOS 7?