Disable resizing the view for the keyboard size

This commit is contained in:
Cameron Gutman
2020-11-28 18:50:54 -06:00
parent 07b8e7fd50
commit 0c6c3ccc83

View File

@@ -150,7 +150,9 @@
name: UIApplicationDidEnterBackgroundNotification
object: nil];
#if !TARGET_OS_TV
#if 0
// FIXME: This doesn't work reliably on iPad for some reason. Showing and hiding the keyboard
// several times in a row will not correctly restore the state of the UIScrollView.
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(keyboardWillShow:)
name: UIKeyboardWillShowNotification
@@ -205,7 +207,7 @@
}
}
#if !TARGET_OS_TV
#if 0
- (void)keyboardWillShow:(NSNotification *)notification {
_keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;