mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Disable resizing the view for the keyboard size
This commit is contained in:
@@ -150,7 +150,9 @@
|
|||||||
name: UIApplicationDidEnterBackgroundNotification
|
name: UIApplicationDidEnterBackgroundNotification
|
||||||
object: nil];
|
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
|
[[NSNotificationCenter defaultCenter] addObserver: self
|
||||||
selector: @selector(keyboardWillShow:)
|
selector: @selector(keyboardWillShow:)
|
||||||
name: UIKeyboardWillShowNotification
|
name: UIKeyboardWillShowNotification
|
||||||
@@ -205,7 +207,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !TARGET_OS_TV
|
#if 0
|
||||||
- (void)keyboardWillShow:(NSNotification *)notification {
|
- (void)keyboardWillShow:(NSNotification *)notification {
|
||||||
_keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
|
_keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user