From 0c6c3ccc83fd0091072305c01b879c28425ec5b8 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 28 Nov 2020 18:50:54 -0600 Subject: [PATCH] Disable resizing the view for the keyboard size --- Limelight/ViewControllers/StreamFrameViewController.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Limelight/ViewControllers/StreamFrameViewController.m b/Limelight/ViewControllers/StreamFrameViewController.m index 699a07cb..54dca115 100644 --- a/Limelight/ViewControllers/StreamFrameViewController.m +++ b/Limelight/ViewControllers/StreamFrameViewController.m @@ -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;